This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have 2 web apps running in the same JBoss server (myApp and myAppReports).
In the struts config of myApp, I want to be able to forward requests to the myAppReports servlet. (ex. a user clicks the button to generate a report - presto - he is forwarded to the reports servlet with req parameters to run report)
I'm unable to forward to a URL like http://localhost/myAppReports because stuts appears to force forward to be within the same app as that of the struts-config. ( I get errors like struts forwards must begin with a /)
The thread you refer to is correct, except it leaves out one very important deatil: You must specify redirect="true" in your forward definition in order to forward to a URL outside of your current application. One restriction of this method, though, is that you obviously can't pass objects in either the request or the session because the other application has no visibility to your application's request or session object. All the information you pass must be in the form of parameters passed in the query string (?parm1=xx&parm2=yy, etc). [ May 03, 2006: Message edited by: Merrill Higginson ]