Hi
I have a problem with the validator framework. The procedure I am
following is
1. I have code like this in the form
public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request){
System.out.println( "The requested operation is " + getOperation() );
if( getOperation().equals( "showRuleByStatus") ||
getOperation().equals(
"addRule")
|| getOperation().equals(
"showRuleDetail") ||
getOperation().equals( "init")){
return new ActionErrors();
}
return super.validate( mapping, request );
}
2. My form extends BaseValidatorForm extends ValidatorForm
3. I have
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,
/WEB-INF/rule_validation.xml"/>
</plug-in>
in the config.
4. I have bean:message tags and resource properties file which is working.
5. I have <html:errors property="errors.required" /> in the JSP.
My error messages never appear if I call any method other than those
mentioned in the validate method.
What could be the problem ?
Mohan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]