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.

Q 4 - Can you override the default error message that can come during file uploading process?

A - yes

B - no

Answer : A

Explanation

You can override the text of these messages in WebContent/WEB-INF/classes/messages.properties resource files.

Answer : C

Explanation

This is used to decorate the execute() method. The Action method also takes in a value which is the URL on which the action is invoked.

Answer : D

Explanation

This validator checks that a String field is of the right length. It assumes that the field is a String. If neither minLength nor maxLength is set, nothing will be done.

Q 8 - Which of the following tag will iterate over a value?

A - if and else tags.

B - iterator tags

C - merge tag

D - append tag

Answer : B

Explanation

These iterator will iterate over a value. An iterable value can be any of: java.util.Collection, java.util.Iterator. While iterating over an iterator, you can use Sort tag to sort the result or SubSet tag to to get a sub set of the list or array.

Q 9 - Struts uses the DOJO framework for the AJAX tag implementation.

A - true

B - false

Answer : A

Explanation

Struts uses the DOJO framework for the AJAX tag implementation.

Q 10 - Struts2 is popular and mature web application framework based on the MVC design pattern.

A - true

B - false

Answer : A

Explanation

Struts2 is popular and mature web application framework based on the MVC design pattern.

struts_questions_answers.htm
Advertisements