How to export a jsp file to CSV?
Posted on 2004-03-31
response.setHeader("Content-disposition", "attachment; filename=report.csv");
It will open a Excel file with all HTML code of the JSP file: <table><tr><td>.......
I do not intend to use
response.setHeader("Content-Disposition","attachment; filename=report.xls" );
How to solve this problem?
Thanks in advance.