Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 80435 invoked from network); 4 Jun 2007 15:42:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jun 2007 15:42:57 -0000 Received: (qmail 27248 invoked by uid 500); 4 Jun 2007 15:42:46 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 27231 invoked by uid 500); 4 Jun 2007 15:42: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 27220 invoked by uid 99); 4 Jun 2007 15:42:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2007 08:42:46 -0700 X-ASF-Spam-Status: No, hits=3.3 required=10.0 tests=HTML_10_20,HTML_MESSAGE,RCVD_IN_NJABL_PROXY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [209.73.178.84] (HELO web60116.mail.yahoo.com) (209.73.178.84) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 04 Jun 2007 08:42:41 -0700 Received: (qmail 99347 invoked by uid 60001); 4 Jun 2007 15:42:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=UIIPNI6QN51aqQiNjSUiIoFB3zcwt5pNte4Q3dKEqluXQ4CE9EoGZQ0hJ1j/VdaEDct0nCyVhDvNrvx+aCALtECBqDb5Hsd96pTJ33uWYmenGApfdlr2zCoMeYu1+idaNlBOAQqgzgYfkjGLNUJkfcDUa5VmEH28VuV3BocuxBI=; X-YMail-OSG: w2NcSL8VM1nUQtxKOl6Jybq3CAnNde8lLZtspO6eG7UvmHDdctt3BG4E0HF2dkfiIA-- Received: from [64.105.110.83] by web60116.mail.yahoo.com via HTTP; Mon, 04 Jun 2007 08:42:20 PDT Date: Mon, 4 Jun 2007 08:42:20 -0700 (PDT) From: Chris Pat Subject: RE: tomcat temp directory To: Tomcat Users List In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1875476499-1180971740=:99022" Content-Transfer-Encoding: 8bit Message-ID: <53578.99022.qm@web60116.mail.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-1875476499-1180971740=:99022 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi Chuck Thanks. But how to I get at it programatically? Is workDir an actual context param that I can access and build a File from? "Caldarale, Charles R" wrote: > From: Chris Pat [mailto:cpanon@yahoo.com] > Subject: Re: tomcat temp directory > > Or is there a better way to create a tmpdir and random file > under the webapp. Look at section 4.7.1 of the servlet spec: "A temporary storage directory is required for each servlet context. Servlet containers must provide a private temporary directory for each servlet context, and make it available via the javax.servlet.context.tempdir context attribute. The objects associated with the attribute must be of type java.io.File." You can use the workDir attribute of the element if you don't like the default: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL 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 attachments 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 --0-1875476499-1180971740=:99022--