Redirect looses all data .. this is how it is to work .... 
One thing you can do is store it as a session attribute :) ... not the
best way but one of the way 


Regards
Guru

-----Original Message-----
From: Al Sutton [mailto:[EMAIL PROTECTED] 
Sent: 22 May 2007 17:22
To: 'Struts Users Mailing List'
Subject: [s2] Best method of passing ActionErrors through a redirect

Simple question; 
 
Is there any way to retain messages added with addActionError or
addActionMessage during a redirect?
 
 
 
More complex explanation of my setup;
 
ActionA gets data and has uses a jsp to display the data (using
<result>my_jsp.jsp</result>). 
my_jsp.jsp has a comment field which submits data to ActionB
ActionB processes the comment and then should send the user to ActionA
which
gets the data with the new comment and re-displays the jsp.
 
To go from ActionB to ActionA I use a redirect, but the redirect seems
to
cause anything added with addActionError or addActionMessage to get
dropped
and so the jsp doesn't display them.
 
 
Any suggestions on what to do?

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

Reply via email to