Re: getContext() returns null

2004-04-18 Thread Umer Rashid
; <[EMAIL PROTECTED]> Sent: Friday, April 16, 2004 5:55 PM Subject: RE: getContext() returns null Hi, Did you try setting crossContext to true for the A context as well? ;) Yoav Shapira Millennium Research Informatics >-Original Message- >From: Umer Rashid [mailto:[EMAIL PR

RE: getContext() returns null

2004-04-16 Thread Shapira, Yoav
Hi, Did you try setting crossContext to true for the A context as well? ;) Yoav Shapira Millennium Research Informatics >-Original Message- >From: Umer Rashid [mailto:[EMAIL PROTECTED] >Sent: Friday, April 16, 2004 6:49 AM >To: Tomcat Users List >Subject: getContext

getContext() returns null

2004-04-16 Thread Umer Rashid
Hello, I was able to acess A.war from B.war, but after I set B.war as ROOT (by setting Context path="" in server.xml), getServletContext().getContext("/A") in B.war return null, even though I have set crossContext ="true" in Context tag of B. Can anyone tell me how this problem can be fixed?

Re: getContext returns null!

2003-11-21 Thread cyril vidal
You're right Jon. Thanks for the tip! Cyril. - Original Message - From: "Jon Wingfield" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, November 21, 2003 11:19 AM Subject: Re: getContext returns null! > I thin

Re: getContext returns null!

2003-11-21 Thread Jon Wingfield
I think you may need to set your Context to be crossContext. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html HTH, Jon cyril vidal wrote: Hi, I just would like to get a reference to the ServletContext of another web application as the current one, to get a RequestDispatcher

getContext returns null!

2003-11-21 Thread cyril vidal
Hi, I just would like to get a reference to the ServletContext of another web application as the current one, to get a RequestDispatcher object. I know that the path should begin with / and that it is interpreted relative to the server's document root . So i'm in a web application context and