Struts Framework provides the functionality to validate the form data.
It can be use to validate the data on the users browser as well as on the server side.
Struts Framework emits the java scripts and it can be used validate the form data on the client browser.
Server side validation of form can be accomplished by sub classing your From Bean with DynaValidatorForm class.
Following are the core components of this framework:
- Validators
- Configuration Files
- Resource Files/Bundles
- JSP Custom Tags
- Validator Form Classes
The Validator Framework uses two XML configuration files validator-rules.xml and 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.
The Validator framework was developed by David Winterfeldt as third-party add-on to Struts. Now the Validator framework is a part of Jakarta Commons project and it can be used with or without Struts. The Validator framework comes integrated with the Struts Framework and can be used without doing any extra settings.
Filed under: Struts
[...] comes integrated with the Struts Framework and can be used without doing any extra settings. Add comment September 9th, [...]
where the validation-rules.xml is found???(means inside which folder of tomcat’s installation folder).
where validator-rules.xml ffile is found(in which subfolder of tomcat’s installation folder)