Howdy,
You can do this in your app's web.xml:
context-param
param-namebaseDir/param-name
param-value/foo/bar/param-value
/context-param
And then in your servlet:
String baseDir = getServletContext().getInitParameter(baseDir);
If iPlanet 4 has a feature tomcat doesn't, I'd be amazed.
If it
* Andy Eastham [EMAIL PROTECTED] [1140 16:40]:
Rasputin,
It's in web.xml
Sorry, I can't see it.
There's a
context-param
element, but I need a context *attribute*, and I don't think they
can be set in tomcat.
See sample chapter on www.moreservlets.com for more info.
Actually, I bought
On Wed, 27 Nov 2002, Rasputin wrote:
Date: Wed, 27 Nov 2002 17:08:20 +
From: Rasputin [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED],
Rasputin [EMAIL PROTECTED]
To: Andy Eastham [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: setting Context attributes
Please read the online documentation page:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
Under heading Context Parameters.
Boris
Rasputin wrote:
* Andy Eastham [EMAIL PROTECTED] [1140 16:40]:
Rasputin,
It's in web.xml
Sorry, I can't see it.
There's a
* Boris Prochazka [EMAIL PROTECTED] [1159 17:59]:
Please read the online documentation page:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
Under heading Context Parameters.
Sorry, to clarify :
element, but I need a context *attribute*, and I don't think they
can be
* Craig R. McClanahan [EMAIL PROTECTED] [1153 17:53]:
On Wed, 27 Nov 2002, Rasputin wrote:
* Andy Eastham [EMAIL PROTECTED] [1140 16:40]:
Rasputin,
It's in web.xml
Sorry, I can't see it.
There's a
context-param
element, but I need a context *attribute*, and I don't
Howdy,
Lovely, that's the sort of mechanism I was looking for - is it portable
between servlet containers though?
For the record, the load-on-startup hack works pretty well. Cheers.
Yes, it's portable. The ServletContextListener is part of the SRV 2.3
spec.
Yoav Shapira
Millennium
On Wed, 27 Nov 2002, Rasputin wrote:
Date: Wed, 27 Nov 2002 18:43:46 +
From: Rasputin [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED],
Rasputin [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: setting Context attributes in web.xml/server.xml
* Craig R. McClanahan [EMAIL PROTECTED] [1125 20:25]:
Lovely, that's the sort of mechanism I was looking for - is it portable
between servlet containers though?
ServletContextListener is indeed portable to any Servlet 2.3 or later
container.
APIs that start java. or javax. are portable
On Thu, 28 Nov 2002, Rasputin wrote:
Date: Thu, 28 Nov 2002 01:19:24 +
From: Rasputin [EMAIL PROTECTED]
To: Craig R. McClanahan [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: setting Context attributes in web.xml/server.xml?
* Craig R. McClanahan [EMAIL PROTECTED] [1125 20:25
10 matches
Mail list logo