Re: loading properties file from WEB-INF instead of WEB-INF/classes

2010-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 4/18/2010 2:27 PM, David Smith wrote: ServletContext.getResource( path ) takes path as relative to the current webapp and returns a URL for opening the resource or null if the resource was not found. also there is --

Re: loading properties file from WEB-INF instead of WEB-INF/classes

2010-04-18 Thread Harry Metske
2010/4/17 Thufir hawat.thu...@gmail.com getPropsFromWebINF works so long as the properties file is within the package of the class (/. However, I'd like to put the properties file under WEB-INF: public void getPropsFromWebINF() throws IOException { Properties p = new

Re: loading properties file from WEB-INF instead of WEB-INF/classes

2010-04-18 Thread Yucca Nel
with a related question regarding how we intwenationalize images? or a link:P -- From: Harry Metske harry.met...@gmail.com Sent: Sunday, April 18, 2010 7:32 PM To: Tomcat Users List users@tomcat.apache.org Subject: Re: loading properties file from WEB-INF

Re: loading properties file from WEB-INF instead of WEB-INF/classes

2010-04-18 Thread David Smith
: Sunday, April 18, 2010 7:32 PM To: Tomcat Users List users@tomcat.apache.org Subject: Re: loading properties file from WEB-INF instead of WEB-INF/classes 2010/4/17 Thufir hawat.thu...@gmail.com getPropsFromWebINF works so long as the properties file is within the package

Re: loading properties file from WEB-INF instead of WEB-INF/classes

2010-04-18 Thread André Warnier
Yucca Nel wrote: props file can be placed in src package and then placed along with classes in the Web-INF directory when compiling with the destination flag .This method has been used since jdk 1 for internationalization and is understood by new and old devs. On a side not perhaps someone can

loading properties file from WEB-INF instead of WEB-INF/classes

2010-04-17 Thread Thufir
getPropsFromWebINF works so long as the properties file is within the package of the class (/. However, I'd like to put the properties file under WEB-INF: public void getPropsFromWebINF() throws IOException { Properties p = new Properties(); InputStream is; is =