-----Original Message-----
From: Holger Klawitter [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 11:00 AM
To: Tomcat Users List
Subject: Re: How do I get the absolute path of a file in a directory
above WEB-INF directory of my web application?


>       java.io.File dir1 = new java.io.File ("..\\"); // line 1

new java.io.File( ".." + File.separator ) would be a somewhat cleaner.

yes that's better.

more over, we can use suitabe seperators depending on the operating system.
I guess for Unix system this must be a forward slash "/". I'm not sure
whether its "/" or "//"

Madhava Reddy

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

Reply via email to