Struts 2.0 allows the use of Custom validators through the @CustomValidator annotation. The @CustomValidator annotation takes two mandatory parameters, type and message type: Refers to the “name” given to the validator in the validators.xml file. message: Message to be displayed when this validator fails. A custom validator can be implemented by extending the FieldValidatorSupport, or [...]






September 29, 2008
1 Comment