struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Cooper" <>
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" <> wrote in message
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

Can anyone guide me as to how to achieve the same using Struts.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message