Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 68777 invoked from network); 10 Jan 2003 20:00:22 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 10 Jan 2003 20:00:22 -0000 Received: (qmail 3695 invoked by uid 97); 10 Jan 2003 20:00:35 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 3622 invoked by uid 97); 10 Jan 2003 20:00: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 3586 invoked by uid 98); 10 Jan 2003 20:00:34 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: Fri, 10 Jan 2003 11:59:05 -0800 (PST) From: "Craig R. McClanahan" To: Tomcat Users List Subject: Re: WAR future-compatibility In-Reply-To: <3E1EFFFE.2070603@ptc.com> Message-ID: <20030110115652.N2423-100000@icarus.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Fri, 10 Jan 2003, Erik Price wrote: > Date: Fri, 10 Jan 2003 12:16:46 -0500 > From: Erik Price > Reply-To: Tomcat Users List > To: Tomcat Users List > Subject: WAR future-compatibility > > I have learned, thanks to reading this list, that one cannot depend on > the presence of the filesystem when developing a webapp, if that webapp > is ever to be bundled as a WAR file. > > I would like to structure my webapp thusly: > > /webapp > | > jsp1.jsp > jsp2.jsp > jsp3.jsp > /includes <-- this is "/webapp/includes" > | > titlebar.jsp > navbar.jsp > footer.jsp > /WEB-INF > | > /classes > /lib > > If I do this: > > <%@ include file="includes/titlebar.jsp" %> > > Will my webapp still work if it's bundled as a WAR file? Or is this a > case of creating a dependency on the presence of the filesystem? > This will work fine. Containers that run webapps directly from a WAR know how to resolve relative URIs to other resources in the WAR. You can even try it for yourself if you want -- set the umpackWARs attribute in server.xml to false, and put a WAR file into the webapps directory. > > Thanks, > > Erik Craig -- To unsubscribe, e-mail: For additional commands, e-mail: