A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
download zip file in struts
Joined: Sep 04, 2007
Jan 06, 2010 02:40:23
I newbee in
. I have a link in jsp page "Dowload Zip file" which call an action class.
I want action class to zip the entire content of the specified directory and send zip file for downloading.
Please help in order to proceed.
Thanks in advance.
Joined: Oct 15, 2004
Jan 06, 2010 03:42:19
If you need info on how to zip files, then do take a look at the
On another note, this really isn't struts related.
Joined: Feb 19, 2008
Jan 06, 2010 03:47:02
In Action class:
1. Using File class, read the each file
Java API, zip them.
3. Send the resulted zip file stream to the response output OR save the resulted zip file on server and then simply give link to that file.
[Freelance Web Designer]
[and "Rohan" is part of my surname]
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: download zip file in struts
Doubt in struts-config.xml?
struts 1.2,Spring 2.0 INtrgration
can some .zip files (not java classes) be included in WEB-INF/classes too ?
download and save a zip file from server
UnZip the FormFile
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013