Re: File Download with multiple files. Design question

2010-11-21 Thread Paweł Wielgus
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

Re: File Download with multiple files. Design question

2010-11-20 Thread Roger Varley
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

Re: File Download with multiple files. Design question

2010-11-20 Thread Li Ying
> 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

Re: File Download with multiple files. Design question

2010-11-20 Thread Paweł Wielgus
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

Re: File Download with multiple files. Design question

2010-11-19 Thread RogerV
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.

Re: File Download with multiple files. Design question

2010-11-19 Thread Li Ying
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

Re: File Download with multiple files. Design question

2010-11-19 Thread Rahul Mohan
. 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-

File Download with multiple files. Design question

2010-11-19 Thread RogerV
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