Hi,
IE is viewing the file automatically because it is registered to launch
automatically in your folder options. Plus you've set the type to:
> response.setContentType("application/vnd.ms-excels;
> charset=us-ascii");
The probable reason that netscape downloads and not opens is you don't
have a setting in your netscape "Application" preferences.
I have netscape 4.7 in my NT box and it does open it there for Excel
files.
The best thing to do is do a "Save Link As".
--
Antonio W. Lagnada
[EMAIL PROTECTED] - email
This email address is specifically
for JSP-Interest email list
---- sridhar r <[EMAIL PROTECTED]> wrote:
> Hi
> I have a problem with the IE.When I try to download a
> file with the given content type and header,the file
> gets downloaded perfectly into our local machine with
> Netscape browser but when i try with IE it gets opened
> in the browser itself.Can anyone give me a solution in
> overcoming this problem.
>
> response.setContentType("application/vnd.ms-excels;
> charset=us-ascii");
>
> response.setHeader("Content-Transfer-Encoding",
> "7bit");
>
>response.setHeader("Content-disposition",
> "attachment; filename=\"sample.xls\"");
>
> regards
> Sridhar
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
___________________________________________________________________
To get your own FREE ZDNet Onebox - FREE voicemail, email, and fax,
all in one place - sign up today at http://www.zdnetonebox.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets