struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Henrikson" <kevin.henrik...@openwave.com>
Subject RE: Validator and loading a form the first time
Date Mon, 01 Jul 2002 16:30:02 GMT
Actually you create two action mappings in your struts-config.xml One with
validate="true" and one with validate="false".  Both pointing to the same Action
sub-class

-kevin

> -----Original Message-----
> From: wbchmura@Ensign-BickfordInd.com
> [mailto:wbchmura@Ensign-BickfordInd.com]
> Sent: Monday, July 01, 2002 9:31 AM
> To: struts-user@jakarta.apache.org
> Subject: Validator and loading a form the first time
>
>
>
> Hi All,
>
> I have several forms that I are getting checked by Validator before the
> user fills out the form.  This is because I used to load the forms by
> calling the action servlet and seeing that it is a first load, skipping
> validation and forwarding the form back...  Kind of a self check...
>
> With struts validator what is the best policy?  I was thinking a
> seperate action that forwards to the same place with validate off...  So
> I have two actions, but no more code...
>
> Is this best?
>
> Thanks!
>
>
> --
> 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