Hi,

try this:
response.setContentType(application/msexcel);
response.setHeader("Content-Disposition","inline; filename="here goes my
filename!!!!");

this works for me in IE and NS.

WBR

Andreas Mecky

> -----Ursprungliche Nachricht-----
> Von: Gerd Trautner [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 14. Marz 2001 09:08
> An: tomcat-user
> Betreff: setContentType / File download
>
>
> Hi tomcat-user,
>
> i have some troubles using the setContentType method.
> I want to generate a CSV file of my database data and send it to the
> browser. the browser should then say "save file as filenam.csv" ...
>
> what i do is:
>
> response.setContentType("application/msexcel;name=\"TUInventory.cs
> v\"\nContent-Disposition: attachment;filename=TUInventory.csv;");
>
> this works for netscape browsers, but ie wants to save index.html.
>
> any tips?
>
> Gerd
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to