Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 88208 invoked by uid 500); 2 Apr 2001 16:41:32 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 88168 invoked from network); 2 Apr 2001 16:41:31 -0000 Received: from ns1.tantalus.com (207.102.240.1) by h31.sny.collab.net with SMTP; 2 Apr 2001 16:41:31 -0000 Received: from joa (joa.tantalus.com [207.102.240.124]) by ns1.tantalus.com (8.11.1/8.11.1) with SMTP id f32GfkO01863 for ; Mon, 2 Apr 2001 09:41:46 -0700 (PDT) Reply-To: From: "George McKInney" To: Subject: RE: RE: how to access a properties file as a resource. Date: Mon, 2 Apr 2001 09:36:50 -0700 Message-ID: <034301c0bb93$1f199210$7cf066cf@tantalus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) In-reply-To: <001801c0bb8e$580274c0$1e00a8c0@Popware.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Unless there is some reason not to have the properties file in WEB-INF/classes/ I suggest you put it there. A project of ours had grown up with a separate WEB-INF/configFiles/ directory, but it turned out to be a real pain. The current build copies the contents of the repository's configFiles dir into WEB-INF/classes. It required a pass through the code that used the properties to access them as: getResourceAsStream("/"+in_filename); where the leading slash puts them in the default package, but the code is much more straight forward and portable. George McKinney, Developer Tantalus Communications Inc. 500-1122 Mainland Street Vancouver, BC, Canada V6B 5L1 george@tantalus.com Direct 604.726.6753 Main 604.609.0700 Fax 604.609.0705 "The Oracle Experts" www.tantalus.com > -----Original Message----- > From: Alex Colic [mailto:alex.colic@pop-ware.com] > Sent: Monday, April 02, 2001 9:03 AM > To: Tomcat-User > Subject: FW: RE: how to access a properties file as a resource. > > > > > But that would mean that the property file is somewhere on > the class path. I > want it in the web-inf/ directory. > > Do you understand what I mean? > > > >Date: Mon, 2 Apr 2001 06:53:38 -0700 > >To: "'tomcat-user@jakarta.apache.org'" > > >From: William Kaufman > >Subject: RE: how to access a properties file as a resource. > >Message-ID: <635802DA64D4D31190D500508B9B04108214E1@dcsrv0> > > >Use java.util.ResourceBundle.getBundle(). > > > -- Bill K. > >