On Wed, 14 Mar 2001 09:07:57 +0100, Gerd Trautner wrote:
>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.csv\"\nContent-Disposition:
> attachment;filename=TUInventory.csv;");
>
>this works for netscape browsers, but ie wants to save index.html.
>
On the cocoon-users there's been a discussion about the following code
response.setHeader("Content-Disposition", "inline;filename=kluge.txt");
they said it was an "unofficial" IE header for the same purpose. haven't tested it
myself,
but looks like we now have two complementry solutions, for
IE and NS :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]