Could you add this to the Validator Wiki FAQ ?
At :
http://nagoya.apache.org/wiki/apachewiki.cgi?ValidatorFAQ
Be sure to give yourself credit
if you want to use different validation rules with the validator you have to declare different action elements in your struts-config.xml file (using the same action class if you want).
another means is to validate your form in the methods of your action class as propose Koni in the mail sent on the list Monday, August 25, 2003 8:04 PM:
struts-config.xml:
<action path="/logon/action/logon" type="test.web.struts.action.logon.LogonAction" name="logonForm" scope="request" <-- !!! validate="false" <-- !!! input="/WEB-INF/jsp/logon/logon.jsp"> <forward name="success" path="/index.jsp"/> </action>
LogonAction.java:
ActionErrors errors = new ActionErrors(); errors = form.validate(mapping, request);
// Report any errors we have discovered back to the original form if (!errors.isEmpty()) { saveErrors(request, errors); return new ActionForward(mapping.getInput()); }
thomas