The Validator module (http://struts.apache.org/userGuide/dev_validator.html) for Struts builds upon the Jakarta Commons Validator that exists as a stand-alone module. It is used in the application architecture to provide validation of data entered by users into forms.
The Validator module is initialised as an ActionServlet
plugin and is configured via validation.xml
and validator-rules.xml
.
Validator is integrated into the architecture by extending ValidatorForm
for all ActionForms and using the
JavascriptValidator custom tag in
JSPs containing forms. Server side validation is performed
for all validated items using the ValidatorForm
mechanism.
In many cases client side Javascript validation is provided using the
JavascriptValidator
custom tag.