Hi Greg, Thanks for your quick repley,!
The reason for doing a redirect on the input is that system needs to determine what will be the page to display next along with the error messages and the garbage values. As a temporary solution i am using the getter and setter methods of the variables of View bean ,storing the request values in a temporary session and retriving it in the redirect method of action. and setting back in the request. -:) which i Guess in not a good approach. But i Guess there should be some way other than the above. Thanks Siddiq. Greg Lindholm-2 wrote: > > 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...@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-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > > :-(( -- View this message in context: http://www.nabble.com/Preserving-Messages-and-Garbage-values-Across-a-Redirect-in-Struts-2-tp26114968p26119066.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org