Has anyone else run into this scenario before?  I've searched the archives 
and couldn't find much on the topic of errors and redirect.

During an action, I want may encounter an error condition and I want to 
REDIRECT the user back to the page where they came from and pass along the 
error.  I need to do a redirect to get the URL of the browser to reflect 
the page where they came from (in case they bookmark the link).  If I 
don't do a redirect then the page being displayed reflects the action they 
were trying to perform and they are out of synch.

The problem with this is that I can't pass the ActionErrors / 
ActionMessages on the request as they are lost with the redirect.

One option I've thought of is to put the data on the session and then 
strip it off in the jsp--each request in a session would need to put data 
in via a unique key that's not in the session (in the event of 
simultaneous requests).

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

Reply via email to