Forums Register Login
create a zip file from a jsp with user selected files.
I am fairly new to java.
I am trying to create a page where the user can check one or many checkboxes that are related to a specific file. The user can select (3 as an example) and click submit and a resulting zip file containing these selected files is created and presented for downloading. I have found a class that I think will handle the zipping but cant seem to call it properly from my jsp.
Here is the class I got from kickjava.com:

Here is my jsp that I am attempting to call the class from:

When I call the class as above I get a zip file with files from the "my documents" folder, I think.
I want to pass the ParameterValues from the preceding jsp but cant seem to make it work.
Thanks In advance!//I thought that by making String files[] = argv; it would work but nogo!
[ September 24, 2003: Message edited by: g forte ]
[ September 24, 2003: Message edited by: g forte ]
[ September 24, 2003: Message edited by: g forte ]
Howdy g, welcome to the Ranch!
One tip I will give you is to be sure to enclose your code in the UBB code tags when posting. That will preserve the formatting of your code making it easier for other members to read it and to help you out.
Another is that just saying "it didn't work" isn't as informative as describing the nature of the failure. If you are getting a stack trace, that information is vital to solving your problem (again the UBB code tags are your friend to preserve the formatting of the trace).
JSP Forum Bartender
P.S. You can go back and edit your original post to replace the unformatted code with formatted code in the UBB code tags. You'll probably get more hits that way.
Pay attention! Tiny ad!
Rocket Oven Kickstarter - from the trailboss

This thread has been viewed 2626 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jul 23, 2018 03:46:50.