Subject: Forwarding to action
From: "Davor Cengija" <[EMAIL PROTECTED]>
===
[Warning: new Struts user ]
Is it possible to return a forward to another action (e.g. to chain
actions)?
For example:
<DeleteSomethingAction>
if (isCanceled(request)) {
// now I want to return to ListSomethingAction, and not to
listSomething.jsp
// since ListSomethingAction fills request and does other things
listSomething.jsp needs
// I also need request and probably other Action.execute() parameters
(mapping and others)
return getAction("/something/list").getMapping().findForward("list"); //
this executes appropriate action and return its "list" forward
}
else {
// delete
return successForward;
}
Thanks!
Davor
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>