You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by N G <ni...@gmail.com> on 2005/03/16 16:10:06 UTC
Context sharing between 2 web apps
Hi,
I am using Tomcat 5.5.7. In a regular servlet, I am trying to do
something like this:
doGet(.....)
{
ServletContext app2 = getServletContext().getContext("/anotherApp");
variable app2 is null after this statement.
I think, context sharing is turned off in Tomcat, but I am not sure
how to turn it back on. I haven't touched server.xml except to switch
to port 80.
Could some help me out here? How do I enable this behavior?
Thanks,
NG
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org