Hi,

I don't know if i could understand your doubt (correct me if i'm wrong) but you must "forward" to your .jsp page and not "redirect"...

If you have a global forward (in your struts-config.xml) like

<forward name="/my_forward_name" path="/my_jsp.jsp" redirect="false"\>

the request will be "forwarded" to the .jsp resource. But if you have

<forward name="/my_forward_name" path="/my_jsp.jsp" redirect="true"\>

the request will "redirected" (then you will "lose" the attributes in your request)

mucus snot wrote:

Hi,

I am using action errors as a means of passing messages to the request:

e.g.

in Action, execute method...

errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("message.to.user"));
saveErrors(request, errors);
return mapping.findForward(Constants.REDIRECT_KEY);


But if I redirect from this action to another forward that is also an action, the actionError is out of scope.

I would be interested to know if
(a) this is good practice - to forward to another forward (it seems to work for me)
(b) there is an easy way to carry the actionError forward within storing in the session, and saving it in the redirected request.


Hope I'm making sense,

Thanks, al




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



Reply via email to