Struts Quiz
Struts Quiz - 1                    

« 1 2 »


1. org.apache.struts.action.Action class extends :
a) Object class
b) Action Servlet
c) Http Servlet
d) None Of the above

2. To Enable Message Resource in struts application
a) <message-resources> tag add to web.xml
b) <message-resources> tag add to Struts-config.xml
c) <message-resources> tag add to properties file
d) None of the above
Wrong! Try again.
Wrong!
The correct answer is b) <message-resources> tag add to Struts-config.xml
Correct!
<message-resources> tag add to Struts-config.xml

3. Struts framework uses following servlet:
a) BasicServlet
b) EntryServlet
c) StrutsServlet
d) ActionServlet
Wrong! Try again..
Wrong!
The correct answer is d) ActionServlet.
Correct!
ActionServlet

4. If validate="false" in struts-config.xml action tag :
a) validate() method of ActionForm called automatically
b) validate() method of Action called automatically
c) validate() method of ActionForm Not Called automatically
d) None Of the above
Wrong! Try again..
Wrong!
The correct answer is c) validate() method of ActionForm Not Called automatically
Correct!
validate() method of ActionForm Not Called automatically

5. Which class checks for the validate attribute in the ActionMapping. 
And If the validate is set to true, invokes the validate() method of the ActionForm instance?
a) ActionServlet
b) RequestProcessor
c) Action
d) StrutsServlet
Wrong! Try again..
Wrong!
The correct answer is b) RequestProcessor
Correct!
RequestProcessor

6. The class populates form data and set to ActionForm :
a) ActionServlet
b) RequestProcessor
c) Action
d) Request
Next-->