struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Cooper" <mart...@apache.org>
Subject Re: Struts - How to Download a File
Date Tue, 04 May 2004 17:16:02 GMT
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" <Singh_bibek@infosys.com> wrote in message
news:9002F5518DF72C4B869259B65E81D85406D402BA@kecmsg03.ad.infosys.com...
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,

Regards,
Bibek




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message