PropertyValidator.java | Class | It contains common validation/conversion operations for action form classes.
Each operation takes the following parameters:
- An
ActionErrors .
- A property name: the name of a form field.
- The property value: the value of the form field.
- A
boolean value specifying whether or not the property is
mandatory.
- A specification of the range of valid values (maybe specified with
several parameters).
- A
Locale object if validation/conversion is
locale-dependent.
If the property value is not correct, an ActionError is added
to ActionErrors using the property name. |