Re: How to share resources across two applications

2005-10-27 Thread Archana Mathur
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

RE: Accessing resource from another context.. ..

2005-10-20 Thread Archana Mathur
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 [

Accessing resource from another context.. ..

2005-10-20 Thread 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