RE: setting Context attributes in web.xml/server.xml?

2002-11-27 Thread Shapira, Yoav
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

Re: setting Context attributes in web.xml/server.xml?

2002-11-27 Thread Rasputin
* 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

Re: setting Context attributes in web.xml/server.xml?

2002-11-27 Thread Craig R. McClanahan
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

Re: setting Context attributes in web.xml/server.xml?

2002-11-27 Thread Boris Prochazka
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

Re: setting Context attributes in web.xml/server.xml?

2002-11-27 Thread Rasputin
* 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

Re: setting Context attributes in web.xml/server.xml?

2002-11-27 Thread Rasputin
* 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

RE: setting Context attributes in web.xml/server.xml?

2002-11-27 Thread Shapira, Yoav
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

Re: setting Context attributes in web.xml/server.xml?

2002-11-27 Thread Craig R. McClanahan
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

Re: setting Context attributes in web.xml/server.xml?

2002-11-27 Thread Rasputin
* 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

Re: setting Context attributes in web.xml/server.xml?

2002-11-27 Thread Craig R. McClanahan
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