Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 21823 invoked from network); 11 Jul 2000 12:30:00 -0000 Received: from gate.ldn.ubswarburg.com (193.82.179.18) by locus.apache.org with SMTP; 11 Jul 2000 12:30:00 -0000 Received: (from smap@localhost) by gate.ldn.ubswarburg.com (8.8.8/8.8.8) id NAA11874 for ; Tue, 11 Jul 2000 13:29:14 +0100 (BST) Received: from (nine.ubswarburg.com [192.168.0.4]) by gate via smap (V2.0) id xma011827; Tue, 11 Jul 2000 13:28:52 +0100 Received: from ln4p1013pos.ldn.swissbank.com (virscan2 [192.168.0.4]) by virscan2.swissbank.com (8.8.8/8.8.8) with ESMTP id MAA24713 for ; Tue, 11 Jul 2000 12:31:17 GMT Received: from w2170210 ([172.16.125.113]) by ln4p1013pos.ldn.swissbank.com (8.8.8/8.8.8) with SMTP id NAA05848 for ; Tue, 11 Jul 2000 13:28:45 +0100 (BST) Message-ID: <010f01bfeb33$8e139250$717d10ac@ldn.swissbank.com> From: "Ben Kelley" To: References: Subject: Re: multiple parameters in context-param Date: Tue, 11 Jul 2000 13:27:12 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-WDR-Disclaimer: Version $Revision: 1.13 $ Hi. Did you get any replies to this problem? I have only been playing with tomcat for a couple of days, but I noticed the same problem. It only sees one of the parameters. - Ben Kelley. ----- Original Message ----- From: To: Sent: Tuesday, July 11, 2000 1:14 PM Subject: multiple parameters in context-param > Hello all, > I'm using Tomcat 3.1 final and have following in web.xml: > > > > > param1 > value1 > > param2 > value2 > > param3 > value3 > > > . > . > . > > > The problem is that only the last name/value pair is set in the servlet > context... So this piece of code > > Enumeration params = this.getServletContext().getInitParameterNames(); > while (params.hasMoreElements()) { > System.out.println(params.nextElement()); > } > > always prints > param3 > > Am I missing something? Can I define multiple name/value pairs in servlet > context this way?' > > Thanks > Roman Kratochvil > > > This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments.