Re: Struts - How to Download a File

2004-05-04 Thread Martin Cooper
Just set the appropriate HTTP response headers, write the content to the servlet output stream, and then return 'null' from your Struts Action. -- Martin Cooper "Singh_bibek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi All, We wish to provide a link to the user, clicking on wh

RE: Struts - How to Download a File

2004-05-04 Thread Lee, Yau-Pang
esponse.getWriter(); out.write(output.toString()); where output is your file -Original Message- From: Singh_bibek [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 12:58 AM To: [EMAIL PROTECTED] Subject: Struts - How to Download a File Hi All, We wish to provide a link to the user, clicking

Struts - How to Download a File

2004-05-03 Thread Singh_bibek
Hi All, We wish to provide a link to the user, clicking on which user can download the file(jpg,gif,mpg,wav,tiff) to his/her local disk. The user should be therefore prompted for the path where the file is to be saved. Can anyone guide me as to how to achieve the same using Struts. Thanks, Reg