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 : B

Explanation

View - This is responsible for displaying all or a portion of the data to the user.

Answer : C

Explanation

It calls the standard response.sendRedirect() method, causing the browser to create a new request to the given location.

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 : A

Explanation

This validation annotation checks that a double field has a value within a specified range. If neither min nor max is set, nothing will be done.

Q 8 - Which of the following tag generates an iterator based on the val attribute supplied?

A - generator tag

B - iterator tags

C - merge tag

D - append tag

Answer : A

Explanation

These generator tag generates an iterator based on the val attribute supplied.

Q 9 - Which of the following tag is used to get the property of a value, which will default to the top of the stack if none is specified?

A - date tag

B - param tag

C - property tag

D - push tag

Answer : C

Explanation

The property tag is used to get the property of a value, which will default to the top of the stack if none is specified.

Q 10 - To use MVC with Struts, you have to be comfortable with the standard JSP, Servlet APIs and a large & elaborate framework.

A - false

B - true

Answer : B

Explanation

To use MVC with Struts, you have to be comfortable with the standard JSP, Servlet APIs and a large & elaborate framework.

struts_questions_answers.htm
Advertisements