Re: How to access web-app context-params from Servlet.init()?

2004-12-28 Thread Shankar Unni
QM wrote: Which init() overload do you use? init() init( ServletConfig ) Using the latter, you should be able to call: ServletConfig#getServletContext() -- getInitParameter() Hah. Thank you! Yes, I mean the latter version.

RE: How to access web-app context-params from Servlet.init()?

2004-12-27 Thread Benson Margulies
You need a ServletContextListener, and you can get to them from there. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Shankar Unni Sent: Monday, December 27, 2004 5:47 PM To: tomcat-user@jakarta.apache.org Subject: How to access web-app context-params from

Re: How to access web-app context-params from Servlet.init()?

2004-12-27 Thread QM
On Mon, Dec 27, 2004 at 02:47:27PM -0800, Shankar Unni wrote: : For JSPs, all is cool: %= application.getInitParameter(foo) % : returns these parameters. : : For Servlets, how do I get at them from the init() method? (I need them : there!). I find that calling config.getInitParameter() doesn't