tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mehdi.Ne...@bluewave.com
Subject RE: How do I access files above and below \web-inf folder?
Date Mon, 02 Dec 2002 10:05:34 GMT

I use the getRealPath,

String pathToPropsFile = config.getServletContext().getRealPath
("WEB-INF/properties/");

use "/", as this also works on win platforms, and does not need escaping.
You should be able to use a relative going up the tree, in the argument
("../foo/bar");

cheers,

Mehdi



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message