Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Annotations > CustomValidator Annotation > ValidationParameter annotation |
The ValidationParameter annotation is used as a parameter for CustomValidators.
The annotation must embedded into CustomValidator annotations as a parameter.
Parameter | Required | Default | Notes |
---|---|---|---|
name | yes | parameter name. | |
value | yes | parameter value. |
@CustomValidator( type ="customValidatorName", fieldName = "myField", parameters = { @ValidationParameter( name = "paramName", value = "paramValue" ) } )