File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 Multiple File Download" Watch "Struts 2 Multiple File Download" New topic

Struts 2 Multiple File Download

Glen Divers
Ranch Hand

Joined: Jan 21, 2010
Posts: 61

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.

Joe Ess

Joined: Oct 29, 2001
Posts: 9189

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.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Struts 2 Multiple File Download
It's not a secret anymore!