Hi, Similar Fle Download issue is addressed before on various sites. Please check out JGuru: http://www.jguru.com/faq/view.jsp?EID=252010 that says: --- Assuming that you want to save the file as "myFile.txt" you have to set the Content-Disposition response Header as follows : response.setHeader("Content-Disposition", "attachment;filename=myFile.txt");
Note that even if the file is of a type that the browser can display ( .html .txt etc.) because you set the disposition type as "attachment", the browser will not open it but it will instead pop up a "save as" box. See HTTP/1.1 specs at: ftp://ftp.isi.edu/in-notes/rfc2616.txt --- Regards, Rommel Sharma. ********************************************************* Disclaimer: This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com