Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 83128 invoked from network); 20 May 2010 19:12:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 May 2010 19:12:32 -0000 Received: (qmail 27393 invoked by uid 500); 20 May 2010 19:12:28 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 27342 invoked by uid 500); 20 May 2010 19:12:28 -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 27333 invoked by uid 99); 20 May 2010 19:12:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 May 2010 19:12:28 +0000 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=AWL,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 May 2010 19:12:20 +0000 Received: from localhost (localhost [127.0.0.1]) by tor.combios.es (Postfix) with ESMTP id 0FD39226239 for ; Thu, 20 May 2010 21:11:04 +0200 (CEST) Received: from tor.combios.es ([127.0.0.1]) by localhost (tor.combios.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h0wVnbyrhiPz for ; Thu, 20 May 2010 21:11:04 +0200 (CEST) Received: from [10.170.36.224] (unknown [89.204.137.96]) by tor.combios.es (Postfix) with ESMTPA id 56211226237 for ; Thu, 20 May 2010 21:11:03 +0200 (CEST) Message-ID: <4BF5896B.8000903@ice-sa.com> Date: Thu, 20 May 2010 21:11:39 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Streaming text files to user References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Roman Sokolyuk wrote: > Hi, > > Could someone please point me to some information? I am having difficulty > finding what I need on Google. > > I want to embed links in my page that, when clicked on will download a text > file form the file system onto users desktop - stream it. > > However, if possible I want to avoid writing a separate process for it. I > heard that Tomcat may already have the facility to do this for me - I just > need to configure it and construct the link accordingly. So, a pointer to > the right docs would be much appreciated. > It may be just the way you explain it, but I don't really understand what the problem is. Tomcat will "naturally" (without even having to add anything to the basic configuration) return the content of a text file, if it is in the right place and the link on your page points to it. That is maybe why you do not find anything on Google about it : because it is not an issue and never was. (It is also unusual to talk about "streaming" for a text file). So what have you tried to do and what does not work, and how does it not work ? Oh, and maybe provide some details about your Tomcat version and so on. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org