Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 36739 invoked from network); 12 Apr 2005 09:17:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Apr 2005 09:17:40 -0000 Received: (qmail 50939 invoked by uid 500); 12 Apr 2005 09:16:35 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 50900 invoked by uid 500); 12 Apr 2005 09:16:34 -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 50727 invoked by uid 99); 12 Apr 2005 09:16:33 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of Michal.Kwiatek@cern.ch designates 137.138.166.167 as permitted sender) Received: from cernmx04.cern.ch (HELO cernmxlb.cern.ch) (137.138.166.167) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 12 Apr 2005 02:16:31 -0700 DomainKey-Signature: a=rsa-sha1; c=nofws; s=beta; d=cern.ch; q=dns; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding; b=dKXIra9W/bY8kwm4AFReFUSz1VaN7WjlxPo4vr19oh66AwRiJOPpYcjaqHL+cgcLPPQOqfWlguSkGdY2IZEM8SIzJ5ABn4WkpE7PPhzduYl+22/FpdE0bYyOa+Biqx5A; Keywords: CERN SpamKiller Note: -50 Charset: west-latin X-Filter: CERNMX04 CERN MX v2.0 050208.1239 Received: from cernxchg16.cern.ch ([137.138.166.149]) by cernmxlb.cern.ch with Microsoft SMTPSVC(6.0.3790.211); Tue, 12 Apr 2005 11:16:26 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Subject: Check deployment dir programatically Date: Tue, 12 Apr 2005 11:16:26 +0200 Message-ID: <181D01CDBEB549439612FBC519537E7BEB48@cernxchg16.cern.ch> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Check deployment dir programatically Thread-Index: AcU/Po5mknhTfJf+S0eWXuCGd4CtYwAAHy9w From: "Michal Kwiatek" To: "Tomcat Users List" X-OriginalArrivalTime: 12 Apr 2005 09:16:27.0147 (UTC) FILETIME=[4E2595B0:01C53F40] X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello all, How can I programatically check the absolute path to the deployment direcotory (webapps/myApp directory) on the server? request.getSession().getServletContext().getResourceAsStream(fileName) works fine to read a file from the direcory, but I see no equivalent to check the root deployment directory. Thanks in advance, Michal. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org