Standalone validation + web form validation
Hi,
I'm currently investigating, whether it is possible to have one set of simple validation rules (as in, required/isInt etc) which could then be used to:
1) validate input from Struts forms
2) validate input from other sources, such as from an EJB?
I have Struts 1.1 using commons-validator 1.0.2 at my disposal.
So far I have been able to create separate validations for cases 1 & 2, but I would like to just use one set of rules and possibly the standard validators (e.g. "required").
|