Hello,
I've been tasked with researching a cure for a problem we're experiencing
with a Web-based application we're developing using JSP.
In the application, there is a page with a submit button. Clicking that
button calls a .jsp file with this code:
<%@ page import="java.util.*" %>
<%
response.setContentType("application/octet-stream");
response.setHeader("Content-disposition","attachment;filename=Foo.xml;");
File file = new File("e:\\download\\Foo.xml"); //Known Directory.
response.setContentLength((int)file.length());
BufferedInputStream in = new BufferedInputStream(new FileInputStream(file));
BufferedOutputStream dataOut = new
BufferedOutputStream(response.getOutputStream());
int b = 0;
while ((b = in.read( )) != -1) {
dataOut.write(b);
}
in.close();
dataOut.close();
%>
The File Download dialog opens. Everything works as it should. However,
after all dialog boxes are close, the cursor remains an hourglass (busy).
Does anyone know why this happens or knows how to fix the problem?
Thanks much.
-Pawan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets