Thursday, April 2, 2009

validator-rules.xml and validation.xml files

Validator framework is used to validate the form data and you no need to write any code in your form bean for validations and storing the error messages.

Your Form Bean, extending one of the Validator’s Action Form subclasses, does the required validations.

If you do not use Validator, you need to handle the data validations in the validate() method of Form Bean objects, and also handle storing of error messages if validationis fails.

Two configuration files used by Validator are validation.xml and validator-rules.xml. In order to enable and use the Validator, plug-in should be added in sturts-config.xml


More Details

No comments:

Post a Comment

Followers