Struts2 Online Quiz


Advertisements

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.

Questions and Answers

Q 1 - Which of the following is not a part of Struts architecture?

A - Actions

B - Interceptors

C - EJB

D - Value Stack / OGNL

Answer : C

Explanation

EJBs are not a part of Struts architecture.

Answer : A

Explanation

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.

Answer : D

Explanation

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?

A - simple theme

B - xhtml theme

C - css_xhtml theme

D - All of the above.

Answer : D

Explanation

All of the above themes comes bundled with struts 2.

Answer : D

Explanation

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.

Answer : C

Explanation

This validation annotation checks that a String field is not empty (i.e. non-null with a length > 0).

Answer : D

Explanation

This annotation sets the KeyProperty for type conversion. The KeyProperty annotation must be applied at field or method level.

Answer : A

Explanation

org.springframework.web.context.ContextLoaderListener acts as Listener class in struts and spring integration.

Q 10 - Struts2 has a great support for multiple view options.

A - false

B - true

Answer : B

Explanation

Struts2 has a great support for multiple view options (JSP, Freemarker, Velocity and XSLT).

struts_questions_answers.htm
Advertisements