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.