You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by dh...@lexmark.com on 2003/05/03 00:51:02 UTC

Re: errors lost when forward to Action?

Should post these to user's list....

but you need to make sure you save the action errors.

Cheers,

David




Márcio Roberto <ma...@lar.cefet-ce.br> on 02/05/2003 07:53:34 PM

Please respond to "Struts Developers List" <st...@jakarta.apache.org>

To:    struts-dev@jakarta.apache.org
cc:
Subject:    errors lost when forward to Action?


Hello,

   It seems that when you forward a request not to a JSP page but to an
action the errors seem to be lost. I have tried to catch the erros using
the code

 ActionErrors errors = new ActionErrors();
 Object value = request.getAttribute(Action.ERROR_KEY);
    if (name instanceof ActionErrors)
       errors = value;

 The ActionErrors instance comes but empty!
 Someone could help?!




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org