|
Ok, a
question related to using resources in jar and war files.
Given
the hierarchy below, if I had a class in etc.jar that used a proprety file also
in etc.jar, how would I refer to that property file from that class?
Thanks
ranko
-----Original Message-----
From: Ryan Littrell [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 1:02 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Problems finding properties files Your
directory should be like the following:
webapps
isover
WEB-INF
web.xml
classes
servlet.class
file.properties
lib
jdbcdrivers.jar
etc.jar
You could put your properties file in the "webapps/isover/WEB-INF/classes" directory and use
getClass().getResourceAsStream("file.properties") then use
propertes.load.
Hope this
helps.
Ryan
|
- RE: Problems finding properties files Ryan Littrell
- Re: Problems finding properties files David Knaack
- RE: Problems finding properties files Ranko Bijelonic
- RE: Problems finding properties files Ranko Bijelonic
- RE: Problems finding properties files Ryan Littrell
- RE: Problems finding properties files Ryan Littrell
