Re: Find current directory of java program running

Milt Epstein <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
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
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.