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.
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
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