THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- conversion validator
- date validator
- double validator
- email validator
- expression validator
- fieldexpression validator
- int validator
- regex validator
- required validator
- requiredstring validator
- stringlength validator
- url validator
- visitor validator
Registering Validators
...
Validation rules are handled by validators, which must be registered with the ValidatorFactory
(using the registerValidator
method). The simplest way to do so is to add a file name validators.xml
in the root of the classpath (/WEB-INF/classes
) that declares all the validators you intend to use.
The following list shows the default validators included in the framework and is an example of the syntax used to declare our own validators.
...