I have a Java Servlet which outputs CSV files on the fly to the browser. I have set the following line
response.setHeader("Content-Disposition", "attachment; file;filename="+filename.toString());
so that I get the open/save dialog box appear in the browser. If I choose save (then open the file afterwards) it works fine but if I choose open
I get an error in Excel saying that the file could not be found.