A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
download zip file in struts
Joined: Sep 04, 2007
Jan 06, 2010 02:40:23
I newbee in
. I have a link in
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
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:
subject: download zip file in struts
struts 1.2,Spring 2.0 INtrgration
can some .zip files (not java classes) be included in WEB-INF/classes too ?
UnZip the FormFile
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-2015