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]