Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 78105 invoked from network); 7 Aug 2002 11:50:47 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 7 Aug 2002 11:50:47 -0000 Received: (qmail 28892 invoked by uid 97); 7 Aug 2002 11:50:49 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 28876 invoked by uid 97); 7 Aug 2002 11:50:49 -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 28864 invoked by uid 98); 7 Aug 2002 11:50:48 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <011501c23e08$7815cbb0$6bed4150@hypergeo.org> From: =?iso-8859-1?Q?C=E9dric_Viaud?= To: "Tomcat Users List" References: Subject: Re: web.xml default parameters to a servlet Date: Wed, 7 Aug 2002 13:49:21 +0200 Organization: Aptus MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N You can acces it in your servlet class by this.getInitParameter(param-name); Ex : myparammyvalueis not required ... So in your servlet : String initValue = this.getInitParameter("myparam"); Regards, C�dric ----- Original Message ----- From: "Rum Pel" To: Sent: Wednesday, August 07, 2002 12:54 PM Subject: Re: web.xml default parameters to a servlet > Hello! > > What is the meaning of init-param element in the Web.xml? > Any comments on my problem? > > --rp. > > >From: "Rum Pel" > >Reply-To: "Tomcat Users List" > >To: tomcat-user@jakarta.apache.org > >Subject: Re: web.xml default parameters to a servlet > >Date: Tue, 06 Aug 2002 00:32:39 -0400 > > > > > >>To my generic servlet I want to attach two URLs, but I dont want > >>to distinguish the two calls using the URLs. Instead I want tomcat > >>to pass a default parameter to the servlet based on the URL. > >>Is this possible, if yes what do I need to write in the web.xml? > >> > > > >I tried using init-param tag, but my servlet did not get this > >parameter. > > > > > > userdel > > my.UserUtils > > > > function > > delete > > > > > > > > > > useradd > > my.UserUtils > > > > function > > add > > > > > > > >In my servlet, I dont have the paramter function, its value it null. > > > > > >_________________________________________________________________ > >Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > > > >-- > >To unsubscribe, e-mail: > > > >For additional commands, e-mail: > > > > > > > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: