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]
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: download zip file in struts
UnZip the FormFile
can some .zip files (not java classes) be included in WEB-INF/classes too ?
struts 1.2,Spring 2.0 INtrgration
download and save a zip file from server
Doubt in struts-config.xml?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014