tags:

views:

152

answers:

1

how can i export my table to excel sheet in jsp??

+1  A: 

The easiest way would be to create a HTML table and send this HTML with the following response headers:

Content-type = application/vnd.ms-excel
Content-disposition = attachment;filename=whateverIsAppropriate.xls

Another option would be to create the Excel using Apache POI and then send that as the response.

Turismo