Im trying to download all files in a directory residing in the server to clients pc.
I know how to download single files using response.getoutputStream().
My problem is I want to download ALL the files in that directory with a single click of a button.
i tried iterating all the files in dir.list() but what happens is it chunks all data into a single file.
Any help would be appreciated.