Hi folks,
I'm porting a servlet-based reporting system from iPlanet to TOmcat 4.1.12,
and it initialises itself based on a context attribute 'baseDir'.
iPlanet lets you set initial context attributes through the server.
How do I set these in Tomcat4? Is it even possible? If iPlanet 4 has a feature tomcat
doesn't, I'd be amazed.
NB: I've tried context parameters, which tomcat does support, but
they're no good. To clarify, I need an attribute I can retrieve via
ServletContext con = getServletContext();
String dirname = (String) con.getAttribute("baseDir");
to return the value. Being able to do this in web.xml
would be extremely useful...
(Worst case scenario, I can write a new servlet and init-on-startup
it to explicitly set the attribute, but that's clankier
than a bicycle made of saucepans....)
--
Rasputin :: Jack of All Trades - Master of Nuns
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>