My mapping specifies 'validate="false"' because I have a method in the
DispatchAction, called refresh(mapping, form, request, response) which
adjusts the size of indexed properties in the Form and returns the user to
the same page.  I do not want the form to be validated when refresh(mapping,
form, request, response) is called, but I do want validation when the other
methods (i.e. add, update) on the DispatchAction are called.  Make sense?

> -----Original Message-----
> From: Nimish Chourey , Tidel Park - Chennai
> [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 09, 2003 10:50 PM
> To: Struts Users Mailing List
> Subject: RE: ValidatorForm losing params when validation fails
>
>
> The validate method of the form would be called before the
> execute method of
> action ..
> Why do you have to call the form.validate(mapping, request) explicitly , I
> doth think this code in acton would be executed if the validation
> fails ...
>
>
> -----Original Message-----
> From: Marc Dugger [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 10, 2003 6:45 AM
> To: [EMAIL PROTECTED]
> Subject: ValidatorForm losing params when validation fails
>
>
> The following code fragment is used in a DispatchAction and when the
> validation fails, the input form is returned unpopulated because
> all my form
> fields lose the data that was originally sent with the request:
>
> ActionErrors errors = form.validate(mapping, request);
>       if (!errors.isEmpty()) {
>               saveMessages(request, errors);
>               return mapping.getInputForward();
>       }
>
> My form extends ValidatorForm and I have not overridden reset().
> Why is the
> form losing it's parameters?  Thanks in advance.
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to