Thursday's Quiz! - learn-struts-fast/struts-tutorials GitHub Wiki
Morning Quiz:
- What class is commonly extended by Action classes?
- ActionHelper
- ActionSupport
- FormHelper
- FormSupport
- In which two places are actions typically configured in a Struts 2.0 application?
- Annotations on the Action class
- XML in the struts-config.xml file
- Annotations in the struts-config.xml file
- XML in the struts.xml file
- Which three of the following scopes is per user?
- page
- request
- session
- application
- Take a look at the following XML configuration:
<action name="hello"
class="com.mcnz.struts.HelloWorldAction"
method="execute">
<result name="success">/results.jsp</result>
</action>
What two ways would you invoke this action from a struts app? (Thank Manvir for this one)
<form action="hello.action">
<form action="hello">
<s:form action="hello">
<s:form action="hello.action>
- Which two of the following is not a standard result string?
- INPUT
- LOGOUT
- LOGIN
- SUCCESS
- FAILURE
- ERROR
- NONE
- The TestAction class has a property named foo. What is the correct way to display the property foo on a JSP page?
- <s:text name="foo" />
- Which one of the following scopes is shared by all users, JSP and web artifacts?
- page
- request
- session
- application
8 What is the most current production certified version of struts?
- 2.0
- 2.1
- 2.5
- 3.1
- Which of the following 2 validators can be configured with upper and lower boundaries?
- @DateRangeFieldValidator
- @RequiredStringValidator
- @IntRangeFieldValidator
- @RegexFieldValidator
- The StrutsPrepareAndExecuteFilter must be configured in what file?
- struts.xml
- struts-config.xml
- web.xml
- application.xml
- What is the most recently released version of the JDK?
- 1.5
- 15
- 5
- 11
- What is the current LTS release of the JDK? (Not covered in the class)
- 1.5
- 15
- 5
- 11