tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Wingfield <>
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.



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:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message