Redirecting To Another Application
Jeromy Van Dusen <[email protected]> Wed, 20 Dec 2006 13:11:53 CST
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <11977488.1166642226531.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
This seems like it should be really simple, so maybe I'm missing something obvious, but I'm not sure how to redirect to another application from a Webwork 2.1.7 action. Basically, I need certain result codes to redirect to a separate application, running in the same app server, which handles identity management. What I currently have mapped is something like this: <action name="foo" class="com.blah.Foo"> <result name="success" type="dispatcher">/foo.jsp</result> <result name="error" type="redirect">http://192.168.0.1/someOtherApp/someSimplePage.jsp</result> </action> It seems I need to specify the complete URL in order to redirect to another application, but if I do that then I need to include the IP address, which I don't want to do (it will be different for each environment I deploy to). What's the correct way to do this? --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=54547&messageID=109221#109221