Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 Multiple File Download

 
Glen Divers
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9339
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic