Following quiz provides Multiple Choice Questions (MCQs) related to Struts2 Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - Which of the following is not a part of Struts architecture?
EJBs are not a part of Struts architecture.
Q 2 - Which of the following is true about struts-config.xml?
All of the above statements are correct.
Q 3 - Which of the following is correct about Temporary Objects?
There are various temporary objects which are created during execution of a page. For example the current iteration value for a collection being looped over in a JSP tag.
Q 4 - What are the Struts2 error message keys that can come during file uploading process?
All of the above are Struts2 error message keys that can come during file uploading process.
Q 5 - Which of the following theme comes bundled with struts 2?
All of the above themes comes bundled with struts 2.
Q 6 - What is the purpose of @IntRangeFieldValidator annotation?
This validation annotation checks that a numeric field has a value within a specified range. If neither min nor max is set, nothing will be done.
Q 7 - What is the purpose of @RequiredStringValidator annotation?
This validation annotation checks that a String field is not empty (i.e. non-null with a length > 0).
Q 8 - What is the purpose of @KeyProperty Annotation?
This annotation sets the KeyProperty for type conversion. The KeyProperty annotation must be applied at field or method level.
Q 9 - Which of the following class acts as Listener class in struts and spring integration?
org.springframework.web.context.ContextLoaderListener acts as Listener class in struts and spring integration.
Struts2 has a great support for multiple view options (JSP, Freemarker, Velocity and XSLT).