You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Reynir Hübner <re...@hugsmidjan.is> on 2002/11/29 12:13:39 UTC
RE: How do I get the absolute path of a file in a directory above WEB-INFdirectory of my web application?
Try this :
String filepath = ServletContext.getRealPath("/WEB-INF/somedir");
Hope it helps
-reynir
> -----Original Message-----
> From: Peter Lee [mailto:tomcatuser@shaw.ca]
> Sent: 29. nóvember 2002 09:18
> To: tomcat-user@jakarta.apache.org
> Subject: How do I get the absolute path of a file in a
> directory above WEB-INFdirectory of my web application?
>
>
> I am using Tomcat for servlets.
> How do I get the absolute path of a file in a directory
> above WEB-INF directory of my
> web application?
>
> Thanks
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>