I understand from the API that if a servlet or jsp calls getContext(String)
on
its own ServletContext, it will get the ServletContext instance of the
foreign
context named in the String parameter.

For example, if the web application descriptor names 'Xpages' and 'Xdata' as
two
distinct applications, what do I need to call from the Xpages application to
get
Xdata's ServletContext instance?

I have tried all sorts, including
getServletContext().getContext("/Xdata")
but all I ever get back is my own context instance again, or in some cases
the
server throws a null pointer exception.

BTW I am using Tomcat 3.1 standalone on NT for this test.

Alex Peterson.

mailto:[EMAIL PROTECTED]
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to