struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Lindholm <greg.lindh...@gmail.com>
Subject Re: Preserving Messages and Garbage values Across a Redirect in Struts 2
Date Thu, 29 Oct 2009 15:31:11 GMT
The short answer is don't redirect when validation fails.

For results of "input" you should not be doing a redirect or you get the
problem you described.

On Thu, Oct 29, 2009 at 11:13 AM, Siddiq Syed <siddiq_sa@yahoo.com> wrote:

>
> Hi all,
>
> I have been using Glindholm's RedirectMessageInterceptor  to perserve the
> validations/error messages and is working absoulty fine.
>
> But the problem is the values in the fields are not stored.
>
> If a form has 10 fields of which 2 fields are not valid(It does not pass
> validation), Intercerptor displays the error message but doesnot shows the
> values in the fields of the form.
>
> I hope you guys got the problem. I don't want the user to enter all the
> values every time even if the validation fails for 1 or 2 field.
>
> Please let me know if you have occured this problem and have the solution
> for the same.
>
> Thanks in advance.
>
> http://glindholm.wordpress.com/
>
>
> Thanks
> Siddiq.
> --
> View this message in context:
> http://www.nabble.com/Preserving-Messages-and-Garbage-values-Across-a-Redirect-in-Struts-2-tp26114968p26114968.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message