Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Empty browser window still exist even HttpServletResponse committed

N. Ganapathy
Posts: 25
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Window1 -> one.jsp, from this jsp , we are calling one more jsp (Window2) to generate pdf by"two.jsp?x=y"). By doing this it opens Two.jsp and generate the pdf as well , finally that window2 get closed. But the scenario is, the copy of Window1 still exist in the view with empty content even HttpServletResponse gets committed.

Code in Two.jsp:

File NewFile=new File(outpath);
byte[] fileData = new byte[(int)NewFile.length()];
FileInputStream fis = new FileInputStream(NewFile);;
ServletOutputStream outputStream = response.getOutputStream();
Currently we are migrating from JBOSS 4.0.2 to JBOSS 6.0 , The above code is working fine in JBOSS 4.0.2. Is this issue related to JBOSS 6.0? Kindly help us to come out from this issue. Expecting your valuable suggetions.

Thanks in advance.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic