Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Read and write inside WEB-INF

Edoardo Panfili

2007-07-14

Replies:

Jacob Rhoden ha scritto:
> 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
>
try with
String x = this.getServletContext().getRealPath("WEB-INF");

Edoardo

--
Jabber: edoardopa@(protected)
tel: 075 9142766

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.