struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Mitchell" <jmitch...@apache.org>
Subject Re: How to export the html table contents (records) to an Excel file.
Date Wed, 04 Feb 2004 12:04:46 GMT

  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: jmitchell@apache.org



----- Original Message -----
From: <ssrinivasrao@worldbank.org>
To: <Struts-User@Jakarta.Apache.Org>
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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message