struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Struts Newsgroup (@Basebeans.com) <str...@basebeans.com>
Subject Forwarding to action
Date Sun, 23 Jun 2002 14:10:02 GMT
Subject: Forwarding to action
From: "Davor Cengija" <dcengija_remove_@inet.hr>
 ===
[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:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message