instead of "text/xls"
use "application/vnd.ms-excel"
 
Geert Van Damme
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of rajac
Sent: dinsdag 15 januari 2002 2:14
To: [EMAIL PROTECTED]
Subject: Problem while writting the response to an Excel file.

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

Reply via email to