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 features are supported in Struts 2.

Answer : D

Explanation

All of the above statements are correct.

Q 3 - Which interceptor is responsible for file upload support?

A - FileUpload

B - File

C - Upload

D - None of the above.

Answer : A

Explanation

File uploading in Struts is possible through a pre-defined interceptor called FileUpload interceptor which is available through the org.apache.struts2.interceptor.

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

Answer : B

Explanation

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

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