Hello.
While trying to find a way to pass parameters from an action to another
(which I actually ended up doing by appending the query string to the
ActionForward's path), I noticed that I could not work directly on the
action from the config file (the one returned from
mapping.findForward()). Attempts to alter that action would result in
failure, e.g. fwdAction.setPath(fwdAction.getPath() + ...)
What I had to do was create a new ActionForward and set its attributes:
ActionForward newAction = new ActionForward();
newAction.setPath(fwdAction.getPath() + ...);
newAction.setRedirect(true);
return newAction;
Now what I am trying to understand is why this is the case. Is is
because ActionForwards defined in the config file are not supposed to be
modified? I am just beginning with Struts, so please bear with me.
Thank you,
--
Ney André de Mello Zunino
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]