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: 
<a href="/some/file/somewhere.xls">click to download</a>

or are you linking to a dynamically generated file, as from a servlet:
<a href="/excel_spitting_servlet/?fileID=somewhere.xls">click to
download</a>


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:[EMAIL PROTECTED] 
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to