This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem regarding excel display through servlets in IE 5.0/5.5/6.0.

 
omi om
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The excel file opens with the help of servlet.It works fine with IE 4.0 but it fails to open in IE 5.0 /5.5/6.0 and pops up with the window saying -
what would you like to do with this file-
1. open this file from currrent location.
2. Save this file to disk.
what could be done to avoid this when MIME-TYPE is already set.
Any help will be appreciated.
Thanks.
 
Kirtikumar Puthran
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not absolutely sure...but I think this is not a browser problem. I had encountered this exact problem some time back, with .csv files which I wanted to open in IE using Excel. It used to show me this dialog :

what would you like to do with this file-
1. open this file from currrent location.
2. Save this file to disk.


I then tried the following:-
I associated the .csv with Excel (I was on Windows and I just right-clicked on a csv file and opened it with Excel. I also checked the checkbox saying that always open .csv using Excel). After doing this, every .csv I open in IE, it opens in Excel inside the browser.
I don't know if any one else has tried this. But, there might be a nicer way of doing this in servlets. Can anyone throw some more light on this?

Rgds,
Kirtikumar Puthran
[ March 12, 2003: Message edited by: Kirtikumar Puthran ]
 
SJ Adnams
Ranch Hand
Posts: 925
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check the content type is set in the response.
maybe telnet into port 80 to check that it is actually getting set.
the query string may need to end in a '.xls' (not convinced this makes a difference)
check the browser settings & I guess like Kirtikumar says - you've associated excel with the file type.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic