Hi Roger,
below is Off-Topic as for struts.
> That's what I'm doing, but the StreamResult requires an InputStream
> which forces the intermediate step of creating a temporary file
I'm not so sure, i haven't done it myself, but there were a discussion
here some time ago
pointing out that one can c
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
ce the first option would be best as I don't need the temp
> file, it was my first solution to providing the StreamResult with an input
> stream that would download multiple files.
>
> Regards
>
> --
> View this message in context:
> http://old.nabble.com/File-Download-with
an input
stream that would download multiple files.
Regards
--
View this message in context:
http://old.nabble.com/File-Download-with-multiple-files.-Design-question-tp30256036p30258354.html
Sent from the Struts - User mailing list archive at Nabble.com.
display next
> so that I can safely clean up? Any other suggested approaches would be
> welome.
>
> Regards
>
> --
> View this message in context:
> http://old.nabble.com/File-Download-with-multiple-fil
.
Regards
--
View this message in context:
http://old.nabble.com/File-Download-with-multiple-files.-Design-question-tp30256036p30256036.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-
ext:
http://old.nabble.com/File-Download-with-multiple-files.-Design-question-tp30256036p30256036.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additiona
8 matches
Mail list logo