JSP to Excel

M

Mayur

I am using
response.setHeader("Content-Disposition","attachment;filename=fileName.xls");
response.setContentType ("application/vnd.ms-excel");
in my JSP to get my output in excel, it is working fine but i cannot
set name to the WorkBook or add new WorkBook in the same excel sheet.
Can anyone suggest me any way to do so.
 
A

andreic

Hi,

You could generate your Excel file using the POI-HSSF library available
at jakarta.apache.org/poi/hssf/index.html - it's very simple to use it
and yet very powerful. I have used in one of my school projects (stand
alone SWING application) and I believe it will work with JSP also ...
first create the Excel file, then download it.
Hope my sugestion will help you!

AndreiC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top