From users-return-149492-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Tue Aug 08 02:15:21 2006 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 55510 invoked from network); 8 Aug 2006 02:15:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2006 02:15:20 -0000 Received: (qmail 8724 invoked by uid 500); 8 Aug 2006 02:15:07 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 8689 invoked by uid 500); 8 Aug 2006 02:15:07 -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 8678 invoked by uid 99); 8 Aug 2006 02:15:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 19:15:07 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ampyx.li@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 19:15:06 -0700 Received: by nf-out-0910.google.com with SMTP id p46so58708nfa for ; Mon, 07 Aug 2006 19:14:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FZA7bXEVwoiOV9qHUzEOh8PWr8fWQ9YMJ+vRHB+bhtefZX+W7CD8n7VMeS2wdrK7ibxFaPcELu7CsXpLApnckGN/8LUVR1qQgqddBgnjTv7O5cXnhEdsWMo64NK83TyBZ4KDBw2TTTT9tLDzszvQJYQAQy+QPLk6V+yjNd8h3GE= Received: by 10.78.127.2 with SMTP id z2mr2579199huc; Mon, 07 Aug 2006 19:14:44 -0700 (PDT) Received: by 10.78.39.5 with HTTP; Mon, 7 Aug 2006 19:14:44 -0700 (PDT) Message-ID: Date: Tue, 8 Aug 2006 10:14:44 +0800 From: Li To: "Tomcat Users List" Subject: Re: Writing files accessible from a browser In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44D6DA5A.1060208@chem.usyd.edu.au> <44D6E13B.3080906@chem.usyd.edu.au> <44D6E6CF.7070701@chem.usyd.edu.au> <44D6EDAE.4040906@chem.usyd.edu.au> <44D6F1EC.8090000@chem.usyd.edu.au> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N you are right Moises, if you really wanna write to somewhere within the webapp deploy folder, a better is to make a soft symbol link point to the directory that stores the image, /webapps --- ---- -------------------> /tmp/images/ so next time update the war, even the folder is removed, the images still at /tmp we can just make a new and make a new link that points to /tmp/images whenever image needs to be written to ... On 8/7/06, Moises Lejter wrote: > I had a similar question, earlier... There is another issue here: you are > right that WAR files are expanded back into a folder - at least by default - > so one could still create a folder within the web app to write to, and which > is visible to browsers... Until one deploys an updated WAR file. At that > point, tomcat will delete the old expanded WAR folder, in order to create a > new one to deploy the new WAR file into - and in the process it will remove > all files that were created before. If these files are just transient > anyway, then it does not matter... > > Moises > > "Li" wrote in message > news:c197ef590608070130g6d42edc0hf27aaf8eae8748bf@mail.gmail.com... > > > > 1. even you deploy as war, later after start tomcat, it will still > > generate a folder that actually tomcat uses normally. so in this case, > > you still be able to use context path to write > > 3. to write, you can always use context path or absolute path > > defintion no matter is inside or outside, but after been written and > > you wanna view, you have to define as URL, > > > > > --------------------------------------------------------------------- > 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 > > -- When we invent time, we invent death. --------------------------------------------------------------------- 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