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