struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@lexmark.com
Subject Re: errors lost when forward to Action?
Date Fri, 02 May 2003 22:51:02 GMT

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

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

Cheers,

David




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

Please respond to "Struts Developers List" <struts-dev@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






Mime
View raw message