In order to access resource of other applications, you have to set parameter
crossContext = "true" in context.xml file of application w1.
Example -
getServletContext().getContext("/w2app") will not return null, if you set this
parameter.
Nihita Goel wrote:
Hi,
I have two applications run
ways return null.
So your context xml file should look similar to this here:
I.e. the parameter crossContext="true" must be there, otherwise
all calls to getContext() with whatever cross-context path will
return null.
Robert
> -Original Message-
> From: Archana Mathur [
Hi,
I have got a jsp page a.jsp within tomcat 5.5.9 application (say app1). I need
to access some other page a2 which is at different location ( at root context)
within a.jsp.
Example - http://localhost/app1/a.jsp - (a.jsp wants access to other jsp which
is at location (http://localhost/a2.jsp