response.setContentType("application/vnd.ms-excel");
Assuming the end user has Excel installed and their browser accepts "application/vnd.ms-excel", the data will be streamed to the client and the content will be opened by Excel. -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 04, 2004 4:06 AM Subject: How to export the html table contents (records) to an Excel file. > Hi, > > I have webpage (.jsp) which lists out 4 to 5 records (having say 4 to 5 columns) > inside html table tag. This page, has an "Export" button, at the bottom. On > click of this button, I need to export the records (that the current page is > displaying) to an .xls (Excel format) file. > > Shall be greatful if anyone can tip me on this. > > Thanks, > S.Srikanth > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]