dcsimg
getContext() return null
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Umer_Rashid
Posted On:   Friday, April 16, 2004 02:00 AM

I was able to acess A.war from B.war, but the moment I set
B.war as ROOT (by setting Context path="" in server.xml),
I am unable to get A.war i.e getServletContext().getContext("/A") returns null in B.war. Can anyone tell me how this problem can be resolved?

Regards,
umer

Re: getContext() return null

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, April 16, 2004 08:03 AM

The javadoc says it's OK to return null:


Returns:

the ServletContext object that corresponds to the named URL, or null if either none exists or the container wishes to restrict this access.

About | Sitemap | Contact