Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 643 invoked from network); 6 Aug 2003 19:51:24 -0000 Received: from unknown (HELO mustang.mpi.com) (63.244.250.132) by daedalus.apache.org with SMTP; 6 Aug 2003 19:51:24 -0000 Received: from lightning.mpi.com (lightning.mpi.com [63.244.252.11]) by mustang.mpi.com (Switch-2.2.6/Switch-2.2.6) with ESMTP id h76Jkka00201 for ; Wed, 6 Aug 2003 15:46:46 -0400 (EDT) Received: from US-VS1.corp.mpi.com ([63.244.252.32]) by lightning.mpi.com (Switch-3.0.4/Switch-3.0.0) with ESMTP id h76Jl4Gs015238 for ; Wed, 6 Aug 2003 15:47:33 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: unpackWars Date: Wed, 6 Aug 2003 15:47:35 -0400 Message-ID: <9C5166762F311146951505C6790A9CF8A6E98D@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: unpackWars Thread-Index: AcNcUzyhqCOZXrcNRwCFXnK3jULrqgAAC9Yw From: "Shapira, Yoav" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Howdy, >One way that I know that seems to work with Tomcat is to call >getServletContext().getRealPath() >If it returns null, that means you are running as a WAR file. > >I'm not sure how reliable this is. Seems to be fine from what I've >seen. This is more or less reliable. The original question is skewed at bes= t, however, as a webapp is not supposed to know whether it's packed or no= t and certainly not supposed to run differently depending on whether it'= s packed or not. Yoav Shapira This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you.