E
Ed
I'm trying to export my results to .csv file named test.csv. The
following is the code which I have in my .jsp file named testCSV.jsp:
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition", "attachment;
filename=test.csv");
There are one major problem which I'm facing:
1. The File Download box comes up and when I click on the Save button,
the filename showing up is testCSV.jsp.
My question is: Which code, should I add in the testCSV.jsp to force
the File Download box to save the file as test.csv?
Thanks!
following is the code which I have in my .jsp file named testCSV.jsp:
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition", "attachment;
filename=test.csv");
There are one major problem which I'm facing:
1. The File Download box comes up and when I click on the Save button,
the filename showing up is testCSV.jsp.
My question is: Which code, should I add in the testCSV.jsp to force
the File Download box to save the file as test.csv?
Thanks!