Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 62063 invoked from network); 7 Dec 2004 23:19:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Dec 2004 23:19:06 -0000 Received: (qmail 74508 invoked by uid 500); 7 Dec 2004 23:18:47 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 74218 invoked by uid 500); 7 Dec 2004 23:18:46 -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 74200 invoked by uid 99); 7 Dec 2004 23:18:45 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from post5.inre.asu.edu (HELO post5.inre.asu.edu) (129.219.110.120) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 07 Dec 2004 15:18:44 -0800 Received: from conversion.post5.inre.asu.edu by asu.edu (PMDF V6.1-1X6 #30769) id <0I8D00F01KLSL6@asu.edu> for tomcat-user@jakarta.apache.org; Tue, 07 Dec 2004 16:15:28 -0700 (MST) Received: from smtp.asu.edu (smtp.asu.edu [129.219.110.107]) by asu.edu (PMDF V6.1-1X6 #30769) with ESMTP id <0I8D00EBDKLRXD@asu.edu> for tomcat-user@jakarta.apache.org; Tue, 07 Dec 2004 16:15:27 -0700 (MST) Received: from A2000018 (wsmoak.vpia.asu.edu [129.219.215.103]) by smtp.asu.edu (8.12.10/8.12.10/asu_smtp_relay,nullclient,tcp_wrapped) with SMTP id iB7NFJMC029820 for ; Tue, 07 Dec 2004 16:15:26 -0700 (MST) Date: Tue, 07 Dec 2004 16:15:19 -0700 From: Wendy Smoak Subject: Re: Best place to store files ? To: Tomcat Users List Message-id: <012801c4dcb2$a3041660$67d7db81@irm.local> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Mailer: Microsoft Outlook Express 6.00.2800.1437 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit X-Priority: 3 X-MSMail-priority: Normal References: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N From: "Eric VERGNAUD" > Yes it's simple. I was just wondering whether there was a preferred method > for this, and maybe a folder in the Tomcat directory for that purpose. Nothing in the Servlet Specification requires Tomcat to provide you with a permanent place to put uploaded files. My advice would be to put them outside of Tomcat, and write a thin layer to insulate the Servlet from whatever decisions you're making today. That way, if you decide at some point in the future to put the files in a database, or do something else with them, you don't have to mess with the Servlet code. Your Servlet shouldn't know or care where the files are, it should just call 'read' or 'write' and let the data access layer deal with the details. -- Wendy Smoak --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org