You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Elmar Zorn (H2Opilot)" <zo...@h2opilot.de> on 2002/02/21 15:20:25 UTC
dynamic forward in an action
hi,
I have implemented an Quickjump in my mainjsp-page.
In the action which is called with the ID of the called Resultpage (can be
an .jsp or an .do) is a
simple Method which is generating the final URL.
I now like to jump / recall the resultaction.
Any Ideas how to do that?
???? What is the code, to jump to something like:
hello_world.jsp?start=10
or uebersicht_all.do
or mail.jsp?fthema=jobs
Here's my codeexample:
public ActionForward perform(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
String quicklinknr = request.getParameter("Quicklink");
String link = DynamicBean.quicklinksearch(quicklinknr);
cat.info("quick:"+quicklinknr);
cat.info("link:"+link);
???? return (mapping.findForward(link)); // I know this is wrong
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>