Set the HTTP Header  "Content-Disposition"

response.setHeader("Content-Disposition",
"attachment;filename=yourFileName");

-Saravanan
---------------------------------------------------------------------
P. Saravanan
Indo-Fuji Information Technologies Pvt Ltd
Bangalore, India.

Ph: 91-80-6784122/33


-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API
Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Reece
Whittaker
Sent: Monday, October 07, 2002 3:46 PM
To: [EMAIL PROTECTED]
Subject: download file name lost


I've set up a simple file serving servlet using a ServletOutputStream &
URLConnection.

The files download fine, but I lose the original file name, instead I get
the servlets mapped name and an object reference (eg MyServlet67f6b)
Do I have to set a header ?

Thankyou.
--
Mike W

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to