Thursday's Quiz! - learn-struts-fast/struts-tutorials GitHub Wiki

Morning Quiz:

  1. What class is commonly extended by Action classes?
  • ActionHelper
  • ActionSupport
  • FormHelper
  • FormSupport
  1. 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
  1. Which three of the following scopes is per user?
  • page
  • request
  • session
  • application
  1. 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>
  1. Which two of the following is not a standard result string?
  • INPUT
  • LOGOUT
  • LOGIN
  • SUCCESS
  • FAILURE
  • ERROR
  • NONE
  1. 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" />
  1. 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
  1. Which of the following 2 validators can be configured with upper and lower boundaries?
  • @DateRangeFieldValidator
  • @RequiredStringValidator
  • @IntRangeFieldValidator
  • @RegexFieldValidator
  1. The StrutsPrepareAndExecuteFilter must be configured in what file?
  • struts.xml
  • struts-config.xml
  • web.xml
  • application.xml
  1. What is the most recently released version of the JDK?
  • 1.5
  • 15
  • 5
  • 11
  1. What is the current LTS release of the JDK? (Not covered in the class)
  • 1.5
  • 15
  • 5
  • 11
⚠️ **GitHub.com Fallback** ⚠️