|
instead of "text/xls"
use
"application/vnd.ms-excel"
Geert
Van Damme
Hi, I am writting the response of
a servlet/jsp page to an Excel file. I am setting the
response.setContentType("text/xls"); But the output is written to a text file
in plain text format.
How to write the response to an
excel file.
Actually my application is like this. I am having
an JSP page, where i have an "download Result" link. By clicking on the link,
the results can either be saved on to the hard disk as an Excel file or can be
displayed on the same window by opening an excel sheet. Your help will really
be appreciated.
Thanks,
Regards, Raja
|