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.

Usage

The annotation must embedded into CustomValidator annotations as a parameter.

Parameters

Parameter Required Default Notes
name yes   parameter name.
value yes   parameter value.

Examples

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