going CRAZY with servlet / xls download on winXP



Hi,

I made nice servlet (Struts action actually) that downloads xls (or
opens - depends what the users chooses).

headers:

response.setHeader("Content-Disposition", "attachment;
filename=report.xls");
response.setContentType("application/vnd.ms-excel");

works on win2k perfectly. I click a download link, then I can choose
whether to save or open - both work great.

Now win XP... Download works but when I choose to open the file - it
opens only if there is already ms-excel opened in the background. If
ms-excel is closed (typical scenario ;) ), IE 6.0 seems to download the
file (yes, the progress bar), then opens the ms-excel, then I see
beautiful error message that the file "documents and
settings/.../../report[1].xls" cannot be found.
In fact this file does not exists (IE's progress bar is a malicious
lier) in any place of the hdd.

Note that everything works on IE 6.0 (or firefox) in win2k (so I
decided not to post any code samples) but opening file fails on IE 6.0
in winXP

What is wrong then?

I tried plethora of different headers in every possible combinations
found in posts of similar (but not equal) problems with file downloads.

Pleaseeeeeeeeeeeee help or I will have to hire a psychiatrist

.



Relevant Pages

  • Re: Cant get Windows Live Mail to act like Outlook Express
    ... The go directly to Inbox has no bearing on downloading messages. ... just says that the Inbox should be shown when OE opens. ... For help with the Windows Live Mail client, ... message every x minutes which downloads the headers but does not open ...
    (microsoft.public.internet.mail)
  • Re: How can I publish pptx on my web
    ... downloads correctly. ... If I click open it opens in Power ... in order to get PPT to treat them differently. ... Also tried uploading with FTP in binary mode, ...
    (microsoft.public.powerpoint)
  • Re: How can I publish pptx on my web
    ... downloads correctly. ... If I click open it opens in Power ... in order to get PPT to treat them differently. ... Also tried uploading with FTP in binary mode, ...
    (microsoft.public.powerpoint)
  • Re: file download through php
    ... I click on download link Firefox and Internet Explorer give me same ... Firefox opens file directly from Internet and ... downloads without problem. ... Internet Explorer saves file on local disk and I can open it from disk ...
    (comp.lang.php)
  • Re: Header details
    ... OETool from www.oehelp.com will allow you read the complete headers ... in a message even thought it's not displayed in the Preview Pane. ... > in either the Preview pane or in a message's own window. ... > always opens on the right. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)