aspose file tools*
The moose likes Struts and the fly likes Struts 2 Multiple File Download Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 Multiple File Download" Watch "Struts 2 Multiple File Download" New topic
Author

Struts 2 Multiple File Download

Glen Divers
Ranch Hand

Joined: Jan 21, 2010
Posts: 61
Hi

I've successfully implemented a single file download using the Stream result. How do I deal with the situation where I have multiple files to download? I want to allow the user to select a number of files and then download all the chosen files, rather than force the user to select a file, download it, select another file, download it etc etc.

Regards
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

HTTP is a single request- single response protocol. Your options are to either force your user to click multiple times, or make some server-side functionality to put multiple files in an archive file and return that as the response.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
jQuery in Action, 2nd edition
 
subject: Struts 2 Multiple File Download