Okay !!
I'll spare you the agony of searching through the archives

response.setContentType("application/cheese-burger");
response.setHeader("Content-Disposition","attachment;
filename=\"fname.csv\"");

Works for me .
What works almost always and is the right thing to do ( but with IE around
the right thing may not 'always' work)

response.setContentType("application/octet-stream");
response.setHeader("Content-Disposition","attachment;
filename=\"fname.csv\"");

Cheers
Mano


-----Original Message-----
From: Christopher K. St. John [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 7:41 PM
To: [EMAIL PROTECTED]
Subject: Re: Save Dialog Box in IE


sunil chinjwani wrote:
>
> I want to download a file
>

 Check the archives. IE is notorious for ignoring all
headers and trying to "do it's own thing" regardless.
Mostly that works ok, but sometimes is causes horrible
problems. This has been discussed extensively, so with
a little hunting, you should be able to find the info
you need.

 Hint: check out the Content-Disposition header.


-cks

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to