properties files and tomcat

2001-01-23 Thread Christoph Rooms
Hi, I want to read a properties file like this : Properties.class.getResourceAsStream("my.properties"); This function should find the properties files when it's in the CLASSPATH. I have putted the properties file in the WEB-APPS dir ... anyone ? thanks ...Christoph

RE: properties files and tomcat

2001-01-23 Thread Randy Layman
D] Subject: properties files and tomcat Hi, I want to read a properties file like this : Properties.class.getResourceAsStream("my.properties"); This function should find the properties files when it's in the CLASSPATH. I have putted the properties file in the WEB-APPS dir ..

RE: properties files and tomcat

2001-01-23 Thread CPC Livelink Admin
are overridden by the same named resource which occurs earlier in the classpath. Just my 2 cents. Regards, Paul -Original Message- From: Greg Schueler [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 3:18 PM To: [EMAIL PROTECTED] Subject: RE: properties files and tomcat You should do

RE: properties files and tomcat

2001-01-23 Thread Christoph Rooms
works fine ! greetz, christoph -Original Message- From: Greg Schueler [mailto:[EMAIL PROTECTED]] Sent: dinsdag 23 januari 2001 21:18 To: [EMAIL PROTECTED] Subject: RE: properties files and tomcat You should do this: Properties myprops = new Properties(); myprops.load(new FileInputStream(new

Re: properties files and tomcat

2001-01-23 Thread Craig R. McClanahan
Christoph Rooms wrote: Hi Greg, You can use the CLASSPATH to load properties files ... Properties p = new Properties(); java.io.InputStream is; is = getClass().getResourceAsStream("rnb.properties"); if (is == null) throw new Exception("Properties file not found"); p.load(is);