You want ServletConfig.getInitParameter(); you can get the ServletConfig
with Servlet.getServletConfig(), or intercept it on the servlet's init()
call.
-- Bill K.
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 28, 2001 7:03 PM
> To: [EMAIL PROTECTED]
> Subject: How do I get context-params that are set in the web.xml file?
>
>
> I hope the subject says it all but here's a reiteration. The sample
> web.xml in TOMCAT_HOME/doc/appdev shows how to set and access
> <context-params>. The current docs on ServletContext do not seem to
> have a method to get context params. <init-params> on a per servlet
> basis work as described but I have several values that all
> servlets must
> access.
>
> Thanks in advance,
> --beeky
>