This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes problem with downloading XLS file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "problem with downloading XLS file" Watch "problem with downloading XLS file" New topic
Author

problem with downloading XLS file

kkalyan kkumar
Greenhorn

Joined: Jul 23, 2008
Posts: 12
Hi,

I did a functionality which allows the user to download an excel sheet which contains the records in the database. When I press DOWNLOAD button in mozilla firefox it works correctly by downloading the excel file (filename.xls).
I'm using the following code:

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


But when i press DOWNLOAD button in Internet Explorer6.0 i am unable to download the excel file. It shows filename_html instead of filename.xls

help me please, Thanks in advance
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Clearly this is not the right forum, but I'm not exactly sure what the right one is. I don't think HTML so I'm kicking this to Servlets.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
Consider Paul's rocket mass heater.
 
subject: problem with downloading XLS file
 
Similar Threads
Downloading problem
Changing the way IE launches files (Word, Excel, etc.)
File size restriction in struts managed download
i cannot download file problem with IE
Keeping count of downloaded file