What is Struts Validator Framework?

What is Struts Validator Framework?

- The validation of data, whether on the client side browser form or on the server side, can be done with the help of Struts Validator Framework.

- It emits the JavaScript from the form and validates only the data.

- The server side validation can be accomplished by sub classing from Bean with DynaValidatorForm class.

- It consists of two XML files:

1. validator-rules.xml : It contains the default struts pluggable validator definitions. New validation rules can be added by adding an entry to the file.

2. validation.xml : It contains the details regarding the validation routines which are applied to the different form beans.

- Both these files should be placed somewhere inside the /WEB-INF folder of the application.
Explain directory structure for a struts folder.
Struts directory structure - The jsp-files (and html-files) may be placed in the root of the application directory. 'struts-blank' contains this single jsp-file....
What is Struts? Explain its advantages - struts and ajax
Struts is open framework for building flexible, business oriented, high performance java web applications....
Ways Struts allow to validate user input - struts and ajax
The following are the different ways that struts allow the user input validation - Validators, Resource bundle, XML configuration file, JSP tag, ValidatorForm, ValidatorActionForm...
Post your comment