JL,
Have a look at the <s:include/> tag: http://struts.apache.org/2.2.3/docs/include.html From your post it sounds to me like it might do what you're looking for. The following is an excerpt from Struts 2 In Action: The include tag > Whereas JSP has its own include tag, <jsp:include>, Struts 2 provides a version that > integrates with Struts 2 better and provides more advanced features. In short, this tag > allows you to execute a Servlet API–style include. This means you can include the output > of another web resource in the currently rendering page. One good thing about > the Struts 2 include tag is that it allows you to pass along request parameters to the > included resource. > > This differs from the previously seen action tag, in that the include tag can reference > any servlet resource, while the action tag can include only another Struts 2 > action within the same Struts 2 application. This inclusion of an action stays completely > within the Struts 2 architecture. The include tag can go outside of the Struts 2 > architecture to retrieve any resource available to the web application in which the > Struts 2 application is deployed. This generally means grabbing other servlets or JSPs. > > Best, jb / ________________________________ From: "[email protected]" <[email protected]> To: Dave Newton <[email protected]>; Struts Users Mailing List <[email protected]> Sent: Friday, August 26, 2011 6:00 PM Subject: Re: Struts2 dispatch request to another application Well, I suppouse that's the only way, it's only that I thought somebody would have come with this problem early, and I wanted to know how, if so, they solved it. JL Sent via BlackBerry from T-Mobile -----Original Message----- From: Dave Newton <[email protected]> Date: Fri, 26 Aug 2011 18:54:18 To: Struts Users Mailing List<[email protected]>; <[email protected]> Subject: Re: Struts2 dispatch request to another application On Fri, Aug 26, 2011 at 6:51 PM, <[email protected]> wrote: > I thought of that, but it doesn't work because the other server is not > available through Internet, only the first one. So I need to 'tunnelize' the > request from the browser to the other server thorugh my application. > If you're trying to make it look like the request is being served by your app, but coming from another one, then you'll basically need to use something like HttpClient to make the underlying request and stream its results back to the client of your app. Dave

