tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Kaufman <WKauf...@viquity.com>
Subject RE: How do I get context-params that are set in the web.xml file?
Date Fri, 29 Jun 2001 14:27:28 GMT
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: beeky@bellatlantic.net [mailto:beeky@bellatlantic.net]
> Sent: Thursday, June 28, 2001 7:03 PM
> To: tomcat-user@jakarta.apache.org
> 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
> 

Mime
View raw message