Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 51894 invoked from network); 4 Jul 2008 15:40:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jul 2008 15:40:59 -0000 Received: (qmail 35478 invoked by uid 500); 4 Jul 2008 15:40:46 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 35458 invoked by uid 500); 4 Jul 2008 15:40:46 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 35425 invoked by uid 99); 4 Jul 2008 15:40:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2008 08:40:45 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.61.61.103] (HELO usea-naimss1.unisys.com) (192.61.61.103) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2008 15:39:51 +0000 Received: from usea-nagw3.na.uis.unisys.com ([129.224.72.20]) by usea-naimss1 with InterScan Message Security Suite; Fri, 04 Jul 2008 10:43:15 -0500 Received: from usea-nagw3.na.uis.unisys.com ([129.224.72.55]) by usea-nagw3.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 4 Jul 2008 10:39:49 -0500 Received: from usea-nahubcas2.na.uis.unisys.com ([129.224.76.115]) by usea-nagw3.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 4 Jul 2008 10:39:49 -0500 Received: from USEA-EXCH7.na.uis.unisys.com ([129.224.76.38]) by usea-nahubcas2 ([10.250.2.45]) with mapi; Fri, 4 Jul 2008 10:39:49 -0500 From: "Caldarale, Charles R" To: Tomcat Users List Date: Fri, 4 Jul 2008 10:39:47 -0500 Subject: RE: Make uploaded files survive to re-deploy Thread-Topic: Make uploaded files survive to re-deploy Thread-Index: Acjd6vf1Mjq27/qqTI60eYOthDB5EwAACt+g Message-ID: <0AAE5AB84B013E45A7B61CB66943C17213B7E55C92@USEA-EXCH7.na.uis.unisys.com> References: <486E32EA.7090806@itestense.it> <007701c8ddea$da3fa8f0$0300000a@animal> In-Reply-To: <007701c8ddea$da3fa8f0$0300000a@animal> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 04 Jul 2008 15:39:49.0009 (UTC) FILETIME=[315A7010:01C8DDEC] X-Virus-Checked: Checked by ClamAV on apache.org > From: Johnny Kewl [mailto:john@kewlstuff.co.za] > Subject: Re: Make uploaded files survive to re-deploy > > We us the Apache web server as well, and we dump image > files to that.... That adds unnecessary complexity and impacts performance for dynamic conten= t. > > If I use an external directory, it would be difficult > > to make those files accessible to the webpages... It's not really difficult. Define a element for an additional we= bapp that targets the external directory via a docBase attribute, and place= that element in conf/Catalina/[host]/[newAppName].xml; use somet= hing like "images" (without the quotes) for [newAppName]. Tomcat's Default= Servlet will happily retrieve and display images or other static content fr= om there when referenced via http://[host]/[newAppName]/[file].[type]. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MA= TERIAL and is thus for use only by the intended recipient. If you received = this in error, please contact the sender and delete the e-mail and its atta= chments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org