File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to download multiple files using struts2

 
MaheshS Kumbhar
Ranch Hand
Posts: 188
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to have a form where user selects multiple zip files using checkbox and then clicks download button. Here I want to download all selected files. How to implement this? I can download single file using stream result type but I have no idea how to use stream result type to download multiple zip files with one user click.

Can anyone please guide me on this?
 
Paul Clapham
Sheriff
Pie
Posts: 20166
24
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't download more than one file in an HTTP response. That's a design feature of HTTP. And since Struts is sending out HTTP responses, you can't do that in Struts.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic