Yes it did. Thanks for your help, that's been plaguing me for ages!

tobes

-----Original Message-----
From: David G. Friedman [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 22, 2004 1:00 PM
To: Struts Users Mailing List
Subject: RE: ActionMessage Handling in the Action Class


Toby,

Does the "failure" forward have a 'redirect="true"' on it in
struts-config.xml?  If it is doing a redirect, the errors saved in the
request scope will be gone when the client does it's redirect to the
"failure" page.

Regards,
David

-----Original Message-----
From: Toby Saville [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 21, 2004 10:49 PM
To: Struts Users Mailing List
Subject: ActionMessage Handling in the Action Class


I am using struts 1.2.4 and im getting a strange problem when I try to
handle errors in my action class.

If i use the following:

saveErrors(request, myErrors);
return mapping.findForward("failure");

The errors dont get displayed in the error page, infact theyre not even
in my request object when the JSP page is loaded.

However, if i use the following:

saveErrors(request, myErrors);
return mapping.getInputForward();

The errors get displayed properly, even tho
mapping.findForward("failure") is the same page as
mapping.getInputForward();

Should my errors be displayed when using the first code block? If so,
Any suggestions why they may not be?

Thanks heaps

tobes


***************************************************************
This message is intended for the addressee named and
may  contain confidential information. If you are not the intended
recipient, please delete it and notify the sender. Views expressed in
this message are those of the individual sender, and are not necessarily
the views of the Department of  Lands.

This email message has been swept by MIMEsweeper
for the presence of computer viruses.
***************************************************************


---------------------------------------------------------------------
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]



***************************************************************
This message is intended for the addressee named and 
may  contain confidential information. If you are not the 
intended recipient, please delete it and notify the sender. 
Views expressed in this message are those of the 
individual sender, and are not necessarily the views of 
the Department of  Lands.

This email message has been swept by MIMEsweeper 
for the presence of computer viruses.
***************************************************************


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

Reply via email to