...
You can't use && directly since the validation files have to be wellformed xml. The correct syntax would be & ;& ; (without the spaces)
Validation on individual methods
To use validation on a specific method in an action you need to call your validation file
ActionClassName-ActionName-validation.xml
Where ActionName is the value matching the name attribute of the action in the action config. Wildcard methods treats / (slashes) as - (dashes). Here is an example, if we wanted to validate only the method dir/myMethod: -
Code Block |
---|
<action name="dir/*" class="com.actions.MyAction" method="{1}">
...
|
We would call the validation file MyAction-dir-myMethod-validation.xml
. This is because ActionClassName is MyAction and ActionName is dir/myMethod, but the / is mapped to - so it becomes dir-myMethod.
Ajax, Javascript
Datepicker i18n problems
...