Check if this could be of any help
String defaultDir = System.getProperty("user.dir");

Vj

----- Original Message -----
From: "Wei Cheng" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 25, 2004 3:01 PM
Subject: servlet's directory


> Hi guys,
>
> is there anyway for a servlet to know the directory they are in ?
>
> eg. C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\webapps\46xx\WEB-INF\classes\
>
> or at least up to C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\webapps\46xx\ ?
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to