Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble with Stream downloads from JSP on XP SP2

Status
Not open for further replies.

Jay1Roy

Programmer
Jul 10, 2001
95
IE
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)
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top