I must
warn you, this is far fetched:
Place
the jsp file in a central location on the hard disc of your
server. Read up this file from inside the init() of some servlet of
your 4 apps, which loads on startup, using normal FileReader. Once read, write
this to a JSP file using normal FileWriter in the appropriate
location.
Some
abstraction can be build into this process, like the location of the jsp file
could be obtained from the web.xml in the from of a
<init-param>
This should work. Comments
anyone???
Regards
Sanjeev
-----Original Message-----
From: Gupta, Gaurav [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 6:16 PM
To: [EMAIL PROTECTED]
Subject: How to share resources across different contexts
From: Gupta, Gaurav [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 6:16 PM
To: [EMAIL PROTECTED]
Subject: How to share resources across different contexts
HI ALLI have more than 4 applications(contexts). Most of the jsp pages include (static) a particular jsp file called Authentication.jsp. Currently this file is present in all the contexts, thus causing duplication. What i want is to have this at a common place and access it across all the contexts. Is there a way to do it.
Thanks