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 21592 invoked from network); 5 Dec 2000 13:59:51 -0000 Received: from mail5.realtime.net (HELO bga.com) (205.238.128.241) by locus.apache.org with SMTP; 5 Dec 2000 13:59:51 -0000 Received: from bga.com ([205.238.153.102]) by bga.com ; Tue, 05 Dec 2000 07:59:48 -0600 Message-ID: <3A2CF500.E49A33D3@bga.com> Date: Tue, 05 Dec 2000 08:00:32 -0600 From: William Brogden Organization: Barely organized X-Mailer: Mozilla 4.61 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Re: properties References: <97602326901@mail5.realtime.net> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N andreas ebbert wrote: > > Hi there, > does anybody know where > to put property-files for servlets > so that tomcat finds them? > I tried to place them in the > same location as the .class- > -file but that didn�t work, any > idea�s? > > regards, > andreas If you are going to open a file, you have to use a fully qualified path. Use web.xml to pass an initialization parameter to the servlet giving the absolute path to the properties file. Here is an example: saynumb.au com.JSPbook.Chap04.NumberSoundServ basepath c:\\tomcat\\webapps\\Root\\JSPbook\\Chap04\\sounds -- WBB - wbrogden@bga.com Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2