In our code we have a JSP which generates output in CSV format. The user gets the normal IE dialog in which he/she chooses the directory and file name into which the output will be stored on the PC.
In the servlet this is the code :
resp.setHeader("content-disposition", "Content-Disposition: attachment; filename=AccrualList.csv");
forwardToJsp("/someCSV.jsp", req, resp);
I want to know that if I have set the header correctly ? or is there any other way I can download the dynamic contents in CSV format.
Any help is appreciated..