• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Table display as Excel file

 
Lee Barney
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?


 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 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
 
Paul Michael
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic