On 10/10/07, Al Maw <[EMAIL PROTECTED]> wrote: > Nili Adoram wrote: > > Suppose I want to forward the HTTP request to some external url (NOT a > > wicket page, e.g. a JSP page). > > I want to end the request cycle at this point ( not include this URL inside > > my page). > > How can I simulate request.getRequestDispatcher(url).forward() within a > > wicket page? > > You use getRequestDispatcher(url).forward(). ;-) > > ((WebRequest)getRequest()).getHttpServletRequest().getRequestDispatcher(url).forward() > to be precise. > > For details of how to embed JSP fragments within a page, see here: > http://herebebeasties.com/2007-03-01/jsp-and-wicket-sitting-in-a-tree/ > > ...which is basically the same problem (only I'm include()ing, not > forward()ing). You might need to tell Wicket to use one-pass rendering > to make this work properly, and you may need to fiddle with > setRedirect(false).
or you can just do what i said and that should always work :) -igor > > Good luck, > > Regards, > > Al > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
