{snippet:id=description|javadoc=true|url=com.opensymphony.xwork2.validator.annotations.Validation} |
{snippet:id=usage|javadoc=true|url=com.opensymphony.xwork2.validator.annotations.Validation} |
{snippet:id=parameters|javadoc=true|url=com.opensymphony.xwork2.validator.annotations.Validation} |
An Annotated Interface
{snippet:id=example|javadoc=true|lang=java|url=com.opensymphony.xwork2.validator.annotations.Validation} |
An Annotated Class
{snippet:id=example2|javadoc=true|lang=java|url=com.opensymphony.xwork2.validator.annotations.Validation} |
|
When multiple methods are used to map different actions on the same class, and one of them is annotated with @Validations, those validators will be triggered for all the actions, unless they are annotated with @SkipValidation or validateAnnotatedMethodOnly is set to true in the "validation" interceptor, like:
|