tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manivannan Palanichamy" <manivannan.palanich...@gmail.com>
Subject Re: Read and write inside WEB-INF
Date Mon, 16 Jul 2007 06:48:14 GMT
I too do the same thing; I am reading properties from a property file, thats
under WEB-INF/classes directory.

code is:  InputStream in = getClass().getClassLoader().getResourceAsStream("
sample.properties");

Code is working fine.


-- 
Manivannan.Palanichamy (@) Oracle.com
http://mani.gw.googlepages.com/index.html





On 7/14/07, Jacob Rhoden <jacob-lists@uptecs.com> wrote:
>
> Hi,
>
> I have seen a few apps do this now and I would like to do it, to have a
> configure page that read and writes a properties file somewhere inside
> the WEB-INF directory. That said, I have been researching and cant find
> out where, what is the correct way to find the location of your WEB-INF
> directory (or your apps directory for that matter).
>
> Best Regards,
> Jacob
>
> ---------------------------------------------------------------------
> 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
>
>


-- 
Manivannan.Palanichamy (@) Oracle.com
http://mani.gw.googlepages.com/index.html

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message