Gidday Xizhen,
Use this
String currentDir = System.getProperty("user.dir")
cheers pb...
Xizhen Wang wrote:
>
> hi! all,
>
> I want to know What is the current directory in servlet code? It seems
> that it is not the directory where the servlet files are located. Can
> anyone help me?
>
> Thank you!
>
> Xizhen
>
> ___________________________________________________________________________
> 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
--
Peter Blakeley
Head of Software Development Coolcat Software Pty. Ltd.
http://www.coolcat.com.au/
Director Bug Audit Services
http://www.coolcat.com.au/bug_audit
A financial instrument is a device used by a Banker to pick your pocket.
It is said an art degree is a licence to know it all, I am lucky I need
no art degree.
;-})
___________________________________________________________________________
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