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.

Answer : C

Explanation

Both of the above statements are correct.

Answer : C

Explanation

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

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.

Q 5 - Which of the following theme provides all the basics that the simple theme provides and adds several features like standard two-column CSS-based layout?

A - simple theme

B - xhtml theme

C - css_xhtml theme

D - complex theme.

Answer : C

Explanation

css_xhtml theme - This theme provides all the basics that the simple theme provides and adds several features like standard two-column CSS-based layout, using for the HTML Struts Tags, Labels for each of the HTML Struts Tags, placed according to the CSS stylesheet.

Answer : B

Explanation

If you want to use several annotations of the same type, these annotation must be nested within the @Validations() annotation.

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

A - if and else tags.

B - iterator tags

C - merge tag

D - append tag

Answer : C

Explanation

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

Q 9 - Which of the following tag assigns a value to a variable in a specified scope?

A - set tag

B - text tag

C - url tag

D - push tag

Answer : A

Explanation

The set tag assigns a value to a variable in a specified scope. It is useful when you wish to assign a variable to a complex expression and then simply reference that variable each time rather than the complex expression. The scopes available are application, session, request, page and action.

Q 10 - The web.xml configuration file is a J2EE configuration file that determines how elements of the HTTP request are processed by the servlet container.

A - false

B - true

Answer : B

Explanation

The web.xml configuration file is a J2EE configuration file that determines how elements of the HTTP request are processed by the servlet container.

struts_questions_answers.htm
Advertisements