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 -- > > ServletC

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

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

2010-04-18 Thread David Smith
om: "Harry Metske" > Sent: Sunday, April 18, 2010 7:32 PM > To: "Tomcat Users List" > Subject: Re: loading properties file from WEB-INF instead of WEB-INF/classes > > >> 2010/4/17 Thufir >> >> >>> getPropsFromWebINF works so long

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

2010-04-18 Thread Yucca Nel
related question regarding how we intwenationalize images? or a link:P -- From: "Harry Metske" Sent: Sunday, April 18, 2010 7:32 PM To: "Tomcat Users List" Subject: Re: loading properties file from WEB-INF instead of WEB-INF

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

2010-04-18 Thread Harry Metske
2010/4/17 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(); >Inpu

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 = getCl