Hi Dave, Basically you have to set the content disposotion to "attachment" eg..
//setting the content type to an arbitrary one, so to make browsers //definitely download the file. Some browsers simply ignore download //instruction and display the content once they know its content-type to //be something displayable. response.setContentType("application/x-download"); response.setHeader("Content-Disposition", "attachment; filename=" + filename); See here: http://www.onjava.com/pub/a/onjava/excerpt/jebp_3/index3.html Thanks and Regards, Thomas Joseph Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015 | India www.kottsoftware.com -------------------------------------------------------------------------------- This email (including any attachments) is subject to copyright, the information in it is confidential, and it is legally privileged. Use of this email or of any information in it other than by the addressee is unauthorized and unlawful. If you are not the intended recipient of the mail, kindly notify the author of the mail and delete the same. -------------------------------------------------------------------------------- It doesn't matter how you were, but rather how you are that decides your future. A right attitude will get you to Success. ----- Original Message ----- From: Dave Kennedy To: user@struts.apache.org Sent: Monday, September 11, 2006 12:52 PM Subject: Download file from server and save on client I need to download a file from a server to client computer using Struts. I've implemented StrutsFileDownload from the Struts Wiki, but this displays the contents of the file http://wiki.apache.org/struts/StrutsFileDownload How can I save the file on the client drive instead of displaying the contents? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]