Hello everybody,

I have a problem forcing the download of an excel file that is generated by
a servlet.  I use the following line of code:

response.setHeader("Content-Disposition","attachment; filename=\"" +
"movimiento.xls" + "\";");

It prompts the dialog to save, but after I has finished to download the file
in the client machine, the window keeps running, and i doesn't stop.

I am using IE 5.0 to do the tests, please tell me what is wrong is there a
bug on servlets, or if there another way to force the downloading of a file.

For your help I thank you in advance

Lorena Carlo

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

Reply via email to