Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 86787 invoked by uid 500); 29 Jun 2001 14:29:31 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 86771 invoked from network); 29 Jun 2001 14:29:30 -0000 Received: from postbox.viquity.com (HELO dcsrv0.ecom2ecom.com) (63.198.126.137) by h31.sny.collab.net with SMTP; 29 Jun 2001 14:29:30 -0000 Received: by dcsrv0 with Internet Mail Service (5.5.2650.21) id ; Fri, 29 Jun 2001 07:27:33 -0700 Message-ID: <635802DA64D4D31190D500508B9B0410821679@dcsrv0> From: William Kaufman To: "'tomcat-user@jakarta.apache.org'" Subject: RE: How do I get context-params that are set in the web.xml file? Date: Fri, 29 Jun 2001 07:27:28 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 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 > . The current docs on ServletContext do not seem to > have a method to get context params. on a per servlet > basis work as described but I have several values that all > servlets must > access. > > Thanks in advance, > --beeky >