Yes. That is what I am assuming. I tried <html:errors /> too
The other methods are blocked. I can see that. The messages are not appearing though. Mohan -----Original Message----- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Saturday, January 24, 2004 1:20 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Validator I assume your goal is to say "If this operation, DON'T use the rules defined in rule_validation.xml"? What's in your rule_validation.xml and relevant JSP? Is that your whole validate() method??? Just based on instinct. I suspect the problem may be in the JSP tags vs what errors you are returning. What happens when you change the jsp to have the <html:errors /> tag instead? -Joe > -----Original Message----- > From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 24, 2004 2:08 AM > To: 'Struts Users Mailing List' > Subject: Validator > > > 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] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]