tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Wingfield <jon.wingfi...@mkodo.com>
Subject Re: Using a property file in java class (not servlet)
Date Tue, 11 Jul 2006 17:03:37 GMT
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message