Hi,
I've
jsp file that will extract data from the database and export it to excel file. Browser will have a popup that prompt the user with a "Save As" prompt.
The problem I'm having is that for the file name, the browser is using the name of the
servlet (say "Copy of Example.do" as the file name).
So my question is how do I get the correct file name to show up. I'm trying to get this to work for the IE 6 browsers.
The headers are being set as follows:
response.setContentType("application/vnd.ms-excel");
response.addHeader("Content-Disposition", "inline; filename=\""+fileName+"\"");
Any help would be appreciated.
Thanks,
Nookala