| Author |
Downloading Multiple Files
|
Saathvik Reddy
Ranch Hand
Joined: Jun 03, 2005
Posts: 228
|
|
Hi, I want to download multiple files by clicking a link. How can i achieve this? Thanks,
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
|
The most common thing to do is zip up all the files on the server and return that. HTTP returns one request per response and browsers are not set up to receive multi-part responses this way.
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
pradeep jaladi
Ranch Hand
Joined: Nov 21, 2004
Posts: 65
|
|
hi, check yahoo how yahoo mail works with multiple files to download.
|
Pradeep.Jaladi
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56191
|
|
Originally posted by pradeep jaladi: check yahoo how yahoo mail works with multiple files to download.
When multiple files are sent in an email message, the Yahoo email client creates one linke per file. That's not what the original question asked.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Saathvik Reddy
Ranch Hand
Joined: Jun 03, 2005
Posts: 228
|
|
Hi Ben, Thanks for your quick reply. I have another question related to this. If i zip all the files how am i going to extract them on a unix box. Is there any other format which can be used on windows and unix. Thanks,
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56191
|
|
|
zip files are not Windows-specific.
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
Like Bear said. Look at java.util.zip http://java.sun.com/j2se/1.5.0/docs/api/java/util/zip/package-frame.html This can be done right in process with pure Java so it won't matter what OS the server or client is using. I've had Linux on my workstations for over 8 years and have never had a problem working with zip files.
|
 |
Saathvik Reddy
Ranch Hand
Joined: Jun 03, 2005
Posts: 228
|
|
|
Thanks to every one for helping me out.
|
 |
 |
|
|
subject: Downloading Multiple Files
|
|
|