Thank you so much for your help. I found the problem. I saw in an article how the validatorPlugin was defined with a set-property property="pathnames" for the validation.xml and the validator-rules.xml.
Either that does not work or I did it wrong. I went back to having a comma separated list. It's ugly, but it works: <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/WEB-INF/validation.xml,/WEB-INF/validator-rules.xml"/> </plug-in> --- Kishore Senji <[EMAIL PROTECTED]> wrote: > On Mon, 24 Jan 2005 18:38:18 -0800 (PST), Norris Shelton > <[EMAIL PROTECTED]> wrote: > > It looks like they are set-up, but nothing happens. It goes > > right into my dispatch action method. > > > > If I submit the form with nothing entered, it goes into the > add > > method. It was working last night, but .... > > I would check the following things: > > * Make sure that the validation plugin is defined > * Make sure that "watchForm" extends ValidatorForm and not > ValidatorActionForm > * Make sure that the validate method calls the > super.validate() and > takes the errors into account, if the validate method is > overridden > > > > > Here is my form action: (it works) > > watchActionAdd.do?method=add > > > > Here is the form declaration: > > <action path="/watchActionAdd" > > parameter="method" > > type="com.appriss.jxportal.watch.WatchAction" > > name="watchForm" > > scope="request" > > validate="true" > > input="/watch/watchAdd.jsp"> > > <forward name="watchView" > > path="/watch/watchView.jsp" contextRelative="true"/> > > </action> > > > > Here is the validation declaration: > > <formset> > > <form name="watchForm"> > > <field property="lastName" > > depends="required,minlength"> > > <arg0 key="lastName"/> > > <arg1 name="minlength" key="${var:minlength}" > > resource="false"/> > > <var> > > <var-name>minlength</var-name> > > <var-value>2</var-value> > > </var> > > </field> > > <field property="firstName" > > depends="required,minlength"> > > <arg0 key="firstName"/> > > </field> > > <field property="dobBegin" depends="date"> > > <arg0 key="dobBegin"/> > > <var> > > <var-name>datePattern</var-name> > > <var-value>MM/dd/yyyy</var-value> > > </var> > > </field> > > </form> > > </formset> > > > > It acts as if there is no validation turned on. > > > > ===== > > > > Norris Shelton > > Software Engineer > > Sun Certified Java 1.1 Programmer > > Appriss, Inc. > > ICQ# 26487421 > > AIM NorrisEShelton > > YIM norrisshelton > > > > __________________________________ > > Do you Yahoo!? > > Take Yahoo! Mail with you! Get it on your mobile phone. > > http://mobile.yahoo.com/maildemo > > > > > --------------------------------------------------------------------- > > 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] > > ===== Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __________________________________ Do you Yahoo!? All your favorites on one personal page – Try My Yahoo! http://my.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]