Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Annotations > CustomValidator Annotation > ValidationParameter annotation
Added by Rainer Hermanns, last edited by Rainer Hermanns on Dec 01, 2006  (view change)

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.


  type ="customValidatorName",
  fieldName = "myField",
  parameters = { @ValidationParameter( name = "paramName", value = "paramValue" ) }