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).
Good luck,
Regards,
Al
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]