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 73483 invoked from network); 13 Dec 2000 01:48:25 -0000 Received: from ns1.valicert.com (HELO ext-mail.valicert.com) (63.65.221.10) by locus.apache.org with SMTP; 13 Dec 2000 01:48:25 -0000 Received: from CONVERSION-DAEMON by ext-mail.valicert.com (PMDF V5.2-33 #46613) id <0G5H00C01H0OBY@ext-mail.valicert.com> for tomcat-user@jakarta.apache.org; Tue, 12 Dec 2000 17:48:24 -0800 (PST) Received: from polaris.valicert.com ([192.168.2.34]) by ext-mail.valicert.com (PMDF V5.2-33 #46613) with ESMTP id <0G5H00BJAH0OFR@ext-mail.valicert.com> for tomcat-user@jakarta.apache.org; Tue, 12 Dec 2000 17:48:24 -0800 (PST) Received: by exchange.valicert.com with Internet Mail Service (5.5.2650.21) id ; Tue, 12 Dec 2000 17:45:24 -0800 Content-return: allowed Date: Tue, 12 Dec 2000 17:45:14 -0800 From: Yin Tse Subject: RE: Servlet init parameters problems To: "'tomcat-user@jakarta.apache.org'" Message-id: <613B3C619C9AD4118C4E00B0D03E7C3E518C9C@exchange.valicert.com> MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-type: text/plain; charset="iso-8859-1" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Thanks david, it works great. :-) -----Original Message----- From: David Mulligan [mailto:dmulligan@careclinix.com] Sent: Tuesday, December 12, 2000 3:35 PM To: 'tomcat-user@jakarta.apache.org' Subject: RE: Servlet init parameters problems You have to put ini-param tags around each parameter. If you do this and call the servlet as named in the servlet-name tag, as opposed to servlet-class it should work. Hope this helps. -----Original Message----- From: Yin Tse [mailto:yint@valicert.com] Sent: Tuesday, December 12, 2000 6:18 PM To: 'tomcat-user@jakarta.apache.org' Subject: Servlet init parameters problems Hi all, I'm having some problems reading my init parameters. I define the init parameters in the web.xml file like this : login LoginServlet login joe password pass driverName oracle.jdbc.driver.OracleDriver connectionUrl jdbc:oracle:thin:@xena:1521:wbdb url www.whatever.com Base_url http://intranet/whateber/ Images_url http://intranet/whatever/images Servlet_url /servlet/ These are defined in the LoginServlet, but the parameters are read in a parent servlet called DBConnectionServlet, but all the params are coming null except the last one which is servlet_url here.If I change the order and put the login init param at the bottom, that's the param which will be read and all others come up null. Does anyone know why ? Thanks for the feedback.