tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QM <>
Subject Re: Include other contexts
Date Wed, 02 Mar 2005 01:34:02 GMT
On Wed, Mar 02, 2005 at 11:53:52AM +1100, Peter Johnson wrote:
: I was just wondering if it was possible to pass a request to another 
: context within the same host and capture the output. If it is, any 
: suggestions on the best way to do so?

You could make a URL call to the app ( and other similar
implementations).  Either that, or RequestDispatcher#include()
(Though something tells me that requires an in-context URL.  Check the
docs to be sure.)

It sounds like you're "screen scraping," though, in which case you'd be
better off trying to find some common data format that app A and app B
can share.  (If, of course, you have some control or influence over App

If app A changes the format of the data (common with websites) then app
B has to play catch-up with its parsing.

: Basically, I am planning to use SiteMesh for site templating however 
: would prefer to deploy many of the apps as individual apps. So somehow I 
: would like to call another context and then have SiteMesh "decorate" the 
: response.

Are you using this setup for branding, then, or something else?  I may
have some suggestions, but knowing your end-goal may help.



software  --
tech news --

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message