If I understand correctly struts provide both client
side and server side validation so that for someone
reason a validation error got slipped by the client
the server validation would still be able to catch it,
am I right?

thanks

--- Niall Pemberton <[EMAIL PROTECTED]>
wrote:
> The client side JavaScript thats generated includes
> a "bCancel" var - which
> if set to "true" causes the validation to be
> skipped. So for your "previous"
> processing, you can just set this variable to "true"
> and submit the form.
> 
> ----- Original Message ----- 
> From: "wo_shi_ni_ba_ba" <[EMAIL PROTECTED]>
> Sent: Wednesday, March 09, 2005 11:30 PM
> 
> 
> > I have a previous and next button, if the user
> > clicks previous I don't want to validate; if the
> user
> > clicks next I want to validate.
> 
> > for client side validation, I am thinking about
> inserting a hidden
> > field, and then have two javascript functions
> > handlePrevious and handleNext that will set the
> value
> > of this field before submit the form, and then use
> > validation rule like validwhen.  Is this a
> valid/good
> > approach?
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to