On Sat, 2010-11-20 at 09:41 +0100, Paweł Wielgus wrote:
> Hi All,
> read about streamResult (I assume You use struts2), and also there is
> no need for next action in chain, user can simply check as many files
> as he wants and click download what will call downloadAction that will
> simply return
> Any examples of doing this in struts 2
You can get the HttpServletResponse by:
ServletActionContext.getResponse()
And then, you can set the download file name, by:
response.setHeader("Content-Disposition",
"attachment; filename=" + fileName);
And then, you can get the Out
Hi All,
read about streamResult (I assume You use struts2), and also there is
no need for next action in chain, user can simply check as many files
as he wants and click download what will call downloadAction that will
simply return zip file for download, after downoading user is still at
the same
3 matches
Mail list logo