exporting tables to excel sheet in jsp [closed]
Question
how can i export my table to excel sheet in jsp??
Solution
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow