Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 36034 invoked from network); 1 Dec 2005 17:08:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Dec 2005 17:08:02 -0000 Received: (qmail 34193 invoked by uid 500); 1 Dec 2005 17:07:20 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 34174 invoked by uid 500); 1 Dec 2005 17:07:20 -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 34163 invoked by uid 99); 1 Dec 2005 17:07:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2005 09:07:20 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [207.148.162.130] (HELO mail.canam.com) (207.148.162.130) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2005 09:08:47 -0800 Received: from GILBY02.canam.com [192.168.0.239] by mail.canam.com with ESMTP (SMTPD32-8.04) id AFFCCF00074; Thu, 01 Dec 2005 10:16:44 -0700 Message-Id: <6.2.0.14.0.20051201100334.041a3da0@mail.canam.com> X-Mailer: QUALCOMM Windows Eudora Version 6.2.0.14 Date: Thu, 01 Dec 2005 10:05:17 -0700 To: "Tomcat Users List" From: Mike Subject: RE: File Download not working for anchor tags In-Reply-To: <017d01c5f609$aedc9f40$4600000a@BALTHAZAR> References: <6.2.0.14.0.20051130163511.041b46d0@mail.canam.com> <017d01c5f609$aedc9f40$4600000a@BALTHAZAR> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The anchor file links to an actual real file on the filesystem, so the first case. I'm using Tomcat stand alone. Mike At 04:56 PM 11/30/2005, you wrote: >Display and generation are two separate issues and I'm confused about which >is which for the OP. > >does the anchor tag link to an actual real file on the filesystem somewhere, >like: >click to download > >or are you linking to a dynamically generated file, as from a servlet: >click to >download > > >in the first case, you're using JSP to display the link and it's more likely >a web-server MIME type that is missing. Are you using TC stand-alone or >fronted with Apache? > >in the second case, you need to worry about setting headers in your >servlet/JSP (the generating servlet/jsp, _not_ the display one) both for >content type and that disposition setting which is the FAQ that Tim linked >to, because now you're generating the contents of the linked "file" in a JSP >or servlet (so actually, not a file, but rather a streamed response). > > > > > -----Original Message----- > > From: Mike [mailto:Tomcat@canam.com] > > Sent: Wednesday, November 30, 2005 5:36 PM > > To: Tomcat Users List > > Subject: Re: File Download not working for anchor tags > > > > > > > > I'm using a JSP page for displaying the anchor actually. > > The anchor is > > linked to a file, either a .xls or .csv file. > > > > Mike > > > > At 04:09 PM 11/30/2005, you wrote: > > >I assume you are using a servlet since JSPs always return a > > >Content-Type. > > >Try setting Content-Type in your servlet so the headers are > > identical. > > > > > >Mark > > > > > >Mike wrote: > > >> Hi Mark, > > >> I compared them and the Content-Type is not showing in > > 4.1.31. In > > >> 4.1.18 it shows as "text/plain". > > >> Thanks, > > >> Mike Gilby > > >>At 02:47 PM 11/30/2005, you wrote: > > >> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org