• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

servlet file download works in Firefox but not IE 6

 
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We're trying to store some user-generated reports in the database and then let the user view/download them (both HTML and CSV versions). There are no problems with the HTML one. On Firefox, the CSV one brings up the browser's file download box like it's supposed to, and it even puts the filename I told it to as the default save name ("ShipmentReport" + accountnbr + ".csv"). However, for IE 6, it gets to the point where it asks you if you want to save the file, but then when you click either Open or Save, it pops up with another windows that says:


I've tried changing the content disposition header to "application/octet-stream" for the CSV one, as well as set the content length, but none of that helps. IE 6 keeps popping up with that weird message AFTER you click Open or Save on the file download box, and this is only when it's a Linux webserver (IE acts fine when I'm accessing the Tomcat on localhost, which is a Windows machine).

Lots of folks must be doing this somehow... What am I doing wrong?
[ January 13, 2005: Message edited by: Stephen Huey ]
 
Stephen Huey
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I took out those 3 lines at the top related to the cache and it works now!


 
Friends help you move. Good friends help you move bodies. This tiny ad will help:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic