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

Explanation

All of the above statements are correct.

Answer : D

Explanation

All of the above options are correct.

Q 5 - Which of the following theme represents minimal theme with no "bells and whistles".?

A - simple theme

B - xhtml theme

C - css_xhtml theme

D - complex theme.

Answer : A

Explanation

simple theme - A minimal theme with no "bells and whistles". For example, the textfield tag renders the HTML tag without a label, validation, error reporting, or any other formatting or functionality.

Answer : D

Explanation

The @After annotation marks a action method that needs to be called after the main action method and the result was executed. Return value is ignored.

Answer : A

Explanation

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

Q 8 - Which of the following tag takes two or more lists as parameters and append them all together?

A - if and else tags.

B - iterator tags

C - merge tag

D - append tag

Answer : D

Explanation

These merge tag take two or more lists as parameters and append them all together.

Answer : B

Explanation

org.apache.struts2.dispatcher.FilterDispatcher acts as Dispatcher class in struts and spring integration.

Q 10 - With Struts applications, there is a lot more going on behind the scenes than with normal Java-based Web applications.

A - true

B - false

Answer : A

Explanation

With Struts applications, there is a lot more going on behind the scenes than with normal Java-based Web applications.

struts_questions_answers.htm
Advertisements