I would like to know what I\'m doing wrong here :
If you wanna skip validation to any action method use @SkipValidation
annotation.
@SkipValidation
public String yourMethod {
...
return "input";
}
The name is case sensitive, you should use
<field-validator type="requiredstring" short-circuit="true">
The data can be validated after it's populated to the action. Either you do it in a declarative way using *-validation.xml
or programmatically via validate()
.
You can configure validation
interceptor to choose between these two ways, because by default validate()
runs after declarative validations are done even if they are short-circuit.
Consider using alwaysInvokeValidate
parameter. If you use aliased validation files as ActionClass-alias-validation.xml
then validations are run for this action alias only. You can use this alias when you map your action methods.