how to access a properties file as a resource.

2001-04-02 Thread Alex Colic
Hi, I have a properties file in the web-inf directory of my web app. How can I access that file. It holds my localization settings I have tried. String pathSeperator =File.separator. InputStream is=context.getResourceAsStream("Web-inf" + pathSeperator + "pwWorkRequestProLocalization");

RE: how to access a properties file as a resource.

2001-04-02 Thread William Kaufman
Use java.util.ResourceBundle.getBundle(). -- Bill K. -Original Message- From: Alex Colic [mailto:[EMAIL PROTECTED]] Sent: Monday, April 02, 2001 6:51 AM To: Tomcat-User Subject: how to access a properties file as a

FW: RE: how to access a properties file as a resource.

2001-04-02 Thread Alex Colic
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: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] From: William Kaufman [EMAIL PROTECTED] Subject: RE: how to access a