tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher K. St. John" <...@distributopia.com>
Subject Re: Accessing resources from other web-apps
Date Fri, 18 Jan 2002 17:25:00 GMT
Sergei Batiuk wrote:
> 
> I have two web-apps (main.war and employees.war). employees.war needs to
> obtain a dynamically-generated web page ('commonHeader.jsp') from the
> main.war. 
>

 Check out the javadocs for:

   javax.servlet.Context.getContext()
   javax.servelt.Context.getRequestDispatcher()

 Note that in Tomcat 4, in the <Context> element in web.xml,
there's an attribute called crossContext that controls if
you're allowed to do this sort of thing. There's a further
explanation in the "Config. Reference" in the Tomcat doc
page. You should have a local copy, but it's also avilable
online at:

   http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html


-- 
Christopher St. John cks@distributopia.com
DistribuTopia http://www.distributopia.com

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message