Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 55909 invoked from network); 3 Dec 2002 15:28:10 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 3 Dec 2002 15:28:10 -0000 Received: (qmail 14289 invoked by uid 97); 3 Dec 2002 15:28:55 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 14273 invoked by uid 97); 3 Dec 2002 15:28:55 -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 14261 invoked by uid 98); 3 Dec 2002 15:28:54 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) References: <3DECC6F0.4090101@simu.de> In-Reply-To: <3DECC6F0.4090101@simu.de> From: "David Brown" To: Tomcat Users List Subject: Re: How to connect to a Data-File above the WEB-INF-Folder from a servlet???? Date: Tue, 03 Dec 2002 09:22:43 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <20021203142243.E41B0BC02@webitplanet.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Patrick Kosiol writes: > Hi, > > How do I connect to a Data-File above the WEB-INF-Folder from a > servlet???? > For example my class is placed in > $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/myApp/server/servlet.class and > my data-files are placed in $CATALINA_HOME/webapps/data/data.dat or so. Is > this possible or does anybody know a better way to place my data-files? > And how do I connect to them? > > thx a lot > Patrick > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > Hello Patrick, it would be easier and more prudent to create ur own application context, a so-called "webapp", and get away from the "ROOT" application. for example i have an online application that uses a java "properities" file in conjuction w/ a "webapp". this properties file is located just above: WEB-INF after the .war expands and i access the file w/o conflicts. if i have a "webapp" that is accessed via: http://localhost:8080/webapp where the actual servlet class resides here: $CATALINA_HOME/webapps/webapp/WEB-INF/classes/com/myhost/webappservlet.class i would access my properites file at: $CATALINA_HOME/webapps/my.properties. hope this helps, david. -- To unsubscribe, e-mail: For additional commands, e-mail: