struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Bell" <r...@messagecast.net>
Subject RE: problem with client-side validation and ValidatorActionForm
Date Wed, 06 Nov 2002 21:33:21 GMT
I only want to validate when a specific action is performed (server-side) so I'm extending
the ValidatorActionForm for my form which is why I'm using the action-mapping in the as the
form name in my validation file as described in the pdf of chapter twelve of Struts in action
book:

To enable the Struts Validator for Struts 1.1, just follow the initial setup instructions
in chapter 4 and extend your ActionForm from ValidatorForm and Validator-
ActionForm. The ValidatorForm will match the formset name with the form-bean
name. The ValidatorActionForm will match the formset name with the actionmapping
path.


-----Original Message-----
From: Pete Gieser [mailto:pgieser@tampabay.rr.com]
Sent: Wednesday, November 06, 2002 1:07 PM
To: 'Struts Users Mailing List'
Subject: RE: problem with client-side validation and ValidatorActionForm


I misread your configurations.  Upon further review, it looks like
you are putting the action instead of the form name in your validation
and jsp form name property.  i.e., you should have

> >   <formset>
> >     <form name="contactInfoForm">
> >       <field property="companyName" depends="required">
> >       <arg0 key="contactInfo.companyName.displayName" />
> >       </field>
> >     </form>
> >   </formset>
> > 
> > 
> > The javascript output when I add <html:javascript 
> > formName="contactInfoForm"/> to my jsp starts out like this:
> > 

Pete


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message