Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 51545 invoked from network); 16 Jan 2003 21:11:20 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 16 Jan 2003 21:11:20 -0000 Received: (qmail 21974 invoked by uid 97); 16 Jan 2003 21:12:19 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 21940 invoked by uid 97); 16 Jan 2003 21:12:18 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 21927 invoked by uid 98); 16 Jan 2003 21:12:17 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <3E271FD9.6040403@blahz.org> Date: Thu, 16 Jan 2003 14:10:49 -0700 From: Mike Roest Organization: Blahz Consulting User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Question about context-param References: In-Reply-To: X-Enigmail-Version: 0.65.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Shapira, Yoav wrote: > Howdy, > > >>Ok that worked great. I don't get the exceptions anymore but for some >>reason it's not pulling the >>params from the web.xml. Any Ideas? > > > If the code below is taken from a servlet, then this.getInitParameter() > will look for an init-parameter element inside the element. > To get a context parameter from a servlet, you do: > String userName = getServletContext().getInitParameter("oracleUser"); > > By the way, I don't remember if you mentioned what tomcat version you're > using. But if you're using tomcat 4.x, you web.xml should be compliant > with the 2.3 spec version, not 2.2. > Yeah it's 4.1.18. /me goes and changes the Spec Thank you very much Yoav it's now working perfectly I appreciate the help. -- To unsubscribe, e-mail: For additional commands, e-mail: