Struts2 Online Quiz



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

Answer : D

Explanation

All of the above steps are part of the life cycle of a request in Struct2 application.

Q 4 - What types of validators are available in xml based validation in struts2?

A - date validator

B - double validator

C - email validator

D - All of the above.

Answer : D

Explanation

All of the above validators are available in xml based validation in struts2.

Answer : A

Explanation

A @Results annotation is a collection of results. Under the @Results annotation, we can have multiple @Result annotations.

Answer : C

Explanation

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

Q 8 - Which of the following tag enables developers to call actions directly from a JSP page by specifying the action name and an optional namespace?

A - generator tag

B - action tag

C - include tag

D - bean tag

Answer : B

Explanation

The action tag enables developers to call actions directly from a JSP page by specifying the action name and an optional namespace. The body content of the tag is used to render the results from the Action.

Q 9 - Which of the following tag will allow you to format a Date in a quick and easy way?

A - date tag

B - param tag

C - property tag

D - push tag

Answer : A

Explanation

The date tag will allow you to format a Date in a quick and easy way.

struts_questions_answers.htm
Advertisements