Re: Find current directory of java program running

"Xu, John" <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
Milt,
Thanks for your response.
The purpose to do this is to find the current directory to open a property file which is located in a directory that this program is running.

regards

John

-----Original Message-----
From: Milt Epstein [mailto:[email protected]]
Sent: Friday, June 20, 2003 5:00 PM
To: [email protected]
Subject: Re: Find current directory of java program running


On Fri, 20 Jun 2003, Xu, John wrote:

> Hi,
> For a jsp page or servlet running within Tomcat, what is the good
> way to find the directory that it is running?  Can we use
> System.getProperty("user.dir")?

For the best answer, you should describe why you want to do this
and/or what are you trying to do.  Then we can tell you the
best/cleanest way to do it.

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[email protected]

___________________________________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.