Try this : 

String filepath = ServletContext.getRealPath("/WEB-INF/somedir");

Hope it helps
-reynir


> -----Original Message-----
> From: Peter Lee [mailto:[EMAIL PROTECTED]] 
> Sent: 29. nóvember 2002 09:18
> To: [EMAIL PROTECTED]
> 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-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to