Using a property file in java class (not servlet)

2006-07-11 Thread sbell
Hello,

Is there anyway of referencing a properties file located in: 
/appName/WEB-INF/file.propertes  From inside a standard java class file? 

steve

Re: Using a property file in java class (not servlet)

2006-07-11 Thread Jon Wingfield
Probably not without using standard java io and a file path (which you 
can't rely on for packed web-apps).


If the file was in /appName/WEB-INF/classes it would be a resource that 
could be found by the classloader.


HTH,

Jon

sbell wrote:

Hello,

Is there anyway of referencing a properties file located in: /appName/WEB-INF/file.propertes  From inside a standard java class file? 


steve




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using a property file in java class (not servlet)

2006-07-11 Thread sbell
Thank you, that does help!
- Original Message - 
From: Jon Wingfield [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, July 11, 2006 1:03 PM
Subject: Re: Using a property file in java class (not servlet)


 Probably not without using standard java io and a file path (which you
 can't rely on for packed web-apps).

 If the file was in /appName/WEB-INF/classes it would be a resource that
 could be found by the classloader.

 HTH,

 Jon

 sbell wrote:
  Hello,
 
  Is there anyway of referencing a properties file located in:
/appName/WEB-INF/file.propertes  From inside a standard java class file?
 
  steve



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]