Package org.apache.struts2.validator.annotations

# Annotation Interface ValidationParameter

@Target({METHOD,TYPE}) @Retention(RUNTIME) public @interface ValidationParameter
The ValidationParameter annotation is used as a parameter for CustomValidators.

Annotation usage:

The annotation must embedded into CustomValidator annotations as a parameter.

Annotation parameters:

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

Example code:

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

Author:
  jepjep, Rainer Hermanns

- ## Required Element Summary

  Required Elements
  Modifier and Type
  Required Element
  Description
  `String`
  `name`
  `String`
  `value`

- ## Element Details

  - ### name

    String name

  - ### value

    String value