You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Gleichmann, Mario" <Ma...@Dresdner-Bank.com> on 2004/01/15 11:43:41 UTC
Where are my ActionErrors ?
Hello all,
i have a problem when i'm trying to retrieve my ActionErrors in a JSP:
In my Action i do the following:
...
ActionErrors errors = new ActionErrors();
errors.add( "INFORMATION", new ActionError( "product.message.test" )
);
saveErrors( request, errors );
...
In the forwarded JSP i try to request the ActionErrors:
<html:errors property="INFORMATION"
bundle="product.messages"/>
... nut no Error is displayed. Even
ActionErrors errors = (ActionErrors) request.getAttribute(
org.apache.struts.Globals.ERROR_KEY );
... delivers null.
Where are my ActionErrors ?
Thanks in advance,
mario
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Where are my ActionErrors ?
Posted by Andrew Hill <an...@gridnode.com>.
Did you do a redirecting or non-redirecting forward to the JSP?
-----Original Message-----
From: Gleichmann, Mario [mailto:Mario.Gleichmann2@Dresdner-Bank.com]
Sent: Thursday, 15 January 2004 18:44
To: 'Struts Users Mailing List'
Subject: Where are my ActionErrors ?
Hello all,
i have a problem when i'm trying to retrieve my ActionErrors in a JSP:
In my Action i do the following:
...
ActionErrors errors = new ActionErrors();
errors.add( "INFORMATION", new ActionError( "product.message.test" )
);
saveErrors( request, errors );
...
In the forwarded JSP i try to request the ActionErrors:
<html:errors property="INFORMATION"
bundle="product.messages"/>
... nut no Error is displayed. Even
ActionErrors errors = (ActionErrors) request.getAttribute(
org.apache.struts.Globals.ERROR_KEY );
... delivers null.
Where are my ActionErrors ?
Thanks in advance,
mario
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org