Without Book Interview Questions and Answers | Online Test | Moct Test
Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Institute Training Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

Struts Interview Questions and Answers

Ques 81. What is an ActionForm?

Ans. An 'ActionForm' is a JavaBean that extends org.apache.struts.action.ActionForm.
ActionForm maintains the session state for web application and the ActionForm object is automatically populated on the server side with data entered from a form on the client side. 

Is it helpful? Add Comment View Comments
Ques 82. Describe the details of XML files used in the Validator Framework?
Ans. The Validator Framework uses two XML configuration files

1) validator-rules.xml and

2) validation.xml.

The validator-rules.xml defines the standard validation routines.

These are reusable and used in validation.xml to define the form specific validations.

The validation.xml defines the validations applied to a form bean.
Is it helpful? Add Comment View Comments
Ques 83. How would you display ?validation fail? errors on a JSP page?
Ans. Following tag displays all the errors:
 <html:errors/>
Is it helpful? Add Comment View Comments
Ques 84. How can one enable front-end validation based on the xml in validation.xml?
Ans. The
<html:javascript>
 tag allows front-end validation based on the xml in validation.xml.

For example the code:

generates the client side JavaScript for the form "logonForm" as defined in the validation.xml file.
The <html:javascript> when added in the JSP file generates the client side validation script.
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2016 WithoutBook