This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Table display as Excel file

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been trying to get IE 6.0 to show and embedded excel spreadsheet when a table is requested. Below is the code for the table. I have also set the following in the servelt:



Neither IE 6.0 nor Firefox display this as an excel spreadsheet. I have Office installed.

I can get Firefox to respond correctly if I use the page directive in the JSP, but this is not optimal.

Ideas?


 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set the Content-Disposition header so that the file has an extension of ".xls"
 
Lee Barney
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I changed the servlet code to be:



still not working.
 
Lee Barney
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also tried:



again, this works in Firefox but not IE 6.0
 
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your webapp using a GZIP filter? A friend suggested installing this fix:

Update for Internet Explorer 6 SP1 - Internet Explorer Does Not Correctly Decompress Data with GZIP Data Compression Method (837251)
    Bookmark Topic Watch Topic
  • New Topic