Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 58464 invoked from network); 4 Feb 2002 22:44:26 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 4 Feb 2002 22:44:26 -0000 Received: (qmail 28795 invoked by uid 97); 4 Feb 2002 22:44:05 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 28779 invoked by uid 97); 4 Feb 2002 22:44:04 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 28768 invoked from network); 4 Feb 2002 22:44:04 -0000 Message-ID: <004101c1adcd$a596f800$0100a8c0@kroon> From: "Koningshoed" To: Subject: RE: which is the current directory for Tomcat Server? Date: Tue, 5 Feb 2002 00:45:28 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi There is a directory called work (jakarta-tomcat-4.0.1/work) under which a directory gets created for each context - where the servlets get run. Excactly how it works from there I'm not sure but you should be able to get to your file by using absolute addresses. Or perhaps by using a relative address of the form "../../webapps/yourappname/WEB-INF/classes/filename", but I'm not too sure. You could possibly find the location by making the servlet create a file called something like find.me and then issuing "find / -name find.me". Jaco ---- Hi, Thanks for the fast reply. What I want is to read a text file from servlet or jsp page. I don 't want to specify the whole directory path for the file. I want to just specify the file name and should be able to read that file. So I believe if I keep in the current working directory of the Tomcat server, it will work. IS the WEB root as same as the Current working directory for the Tomcat Server. Regards, Santosh -----Original Message----- From: Atok Koenig [mailto:atok@mad.scientist.com] Sent: Thursday, January 31, 2002 3:54 PM To: Tomcat Users List Subject: Re: which is the current directory for Tomcat Server? Do you mean the web root? If so that is \jakarta-tomcat-3.2.2\webapps\ROOT Youcan change this or add additional virtual roots in the \config\server.xml file using the context tags -----Original Message----- From: "Santosh Varghese" Date: Thu, 31 Jan 2002 14:37:21 -0800 To: "Tomcat Users List" Subject: which is the current directory for Tomcat Server? > Hi, > > I wanted to read some txt file from the current directory for > tomcat server. But I am unable to find out the current directory. > Please help me out > > Regards, > Santosh > > > -- To unsubscribe: For additional commands: Troubles with the list: