...
This plugin is still in the Struts Sandbox, to use it, you will have to check it out from svn and build it.
Interceptors
The plugin defines a the interceptor "ovalValidation" and the interceptor and a stack "ovalValidationStack" in the "oval-default" package. To use this interceptor, extend the "oval-default" package and apply the interceptor to your action, like:
...
OVal provides many annotations for validations that can be used out of the box , and new validations (custom validators can also be defined). Once the "ovalValidation" interceptor is applied to an action, you can annotate it:
...
Code Block | ||||
---|---|---|---|---|
| ||||
<dependency> <groupId>com.thoughtworks.xstream</groupId> <artifactId>xstream</artifactId> <version>1.3.1</version> </dependency> |