Hi all,
I have a page that exports data to a file (in .CSV, .TXT, etc formats) on client's PC. Everything was fine until Microsoft released SP2 for Windows XP.
The home page of the application is a regular browser page and when the user enters a valid user id/password, a popup window opens with the actual application.
Now when the same page is used to export, the file is downloaded alright but the application popup window holding the page closes abruptly! I have disabled the popup blocker and turned off firewall but in vain.
Here is a quick snippet from what's in the code. (Mind you the code is in production and works perfectly fine for users other than on XP SP2 machines)
Any help/suggestion will be greatly appreciated.
Thanks in adv.
Roy
I have a page that exports data to a file (in .CSV, .TXT, etc formats) on client's PC. Everything was fine until Microsoft released SP2 for Windows XP.
The home page of the application is a regular browser page and when the user enters a valid user id/password, a popup window opens with the actual application.
Now when the same page is used to export, the file is downloaded alright but the application popup window holding the page closes abruptly! I have disabled the popup blocker and turned off firewall but in vain.
Here is a quick snippet from what's in the code. (Mind you the code is in production and works perfectly fine for users other than on XP SP2 machines)
Code:
response.setContentType("application/octet-stream");
response.setHeader("Content-disposition", "attachment;filename=" + fileNameFormat);
.
.
javax.servlet.ServletOutputStream pw = response.getOutputStream();
.
.
.
pw.print(strFileContent);
pw.flush();
pw.close();
Any help/suggestion will be greatly appreciated.
Thanks in adv.
Roy