• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need Help for implementing save as dialog box for downloading a folder not a file

 
Vinodh Sa
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Usually we download each and every file separetely. But my requirement is like, on click of a button the system should download multiple files and move them to a folder and that folder should get downloaded to the user specified path.

I need help in generating this save dialog box wit browse button where the user selects the path to save the folder. And i need that path to be binded wit a variable of my java class.

Currently the "HttpServletResponse" object is used for single file download (which will open a regular open,save,cancel dialog box like in all websites), but i m not able to retrieve the path that the user has selected for saving that particular file (from the "HttpServletResponse" object). If someone can help in getting the user selcted path, then i can bind that wit a string variable of my java class and i can download bulk files to the user specified folder.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no support in HTTP and HTML for folder download. You'll need to either get the requirement changed, or use a fatter client such as an Applet.
 
Vinodh Sa
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:There is no support in HTTP and HTML for folder download. You'll need to either get the requirement changed, or use a fatter client such as an Applet.
Thanks Bibeault !!! Actually i have changed the requirement to Zip and download using java API's zip utility. Now its working.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic