Tuesday, May 3, 2011

exporting tables to excel sheet in jsp

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

From stackoverflow
  • 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.

0 comments:

Post a Comment