Originally posted by Ed Thompson:
I want to forward, not redirect, as I want the cookies in the session to be included in the forward.
Sorry, Ed, what you're trying to do is simply not possible. You can redirect to another web application, but you cannot forward to it, even if it's on the same server. This is just one of the rules of
Java EE Web Applications. If you want a
Struts forward to redirect, that's pretty easy to set up. Here's an example:
I'm not sure what you're saying, though, about the cooikes. Cookies reside on the browser, not the server, and as long as the new server is in the same domain as the old server, the cookies will get picked up. However, there's no way the second application can share the same HTTPSession object as the first. If you have data you want to pass to the second application, I'd suggest passing it in query
string parameters (e.g. ?parm1=foo&parm2=bar etc.).
[ August 03, 2007: Message edited by: Merrill Higginson ]