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