File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes download zip in  jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "download zip in  jsp" Watch "download zip in  jsp" New topic

download zip in jsp

Kota li

Joined: Sep 05, 2007
Posts: 20
how to download zip file from jsp while clicking hyper link
Sam Gardner
Ranch Hand

Joined: Oct 02, 2007
Posts: 31
As far as my understanding goes, this should be done the same way as in HTML. You put the zip file on your server, and have your hyperlink point to that location, where the browser should recognize it and ask if you want to download it.

JSP is really just code that extends a normal HTML page, anything that's outside the <% %> tags executes like HTML normally would.
[ November 08, 2007: Message edited by: Sam Gardner ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870

Originally posted by Sam Gardner:
JSP is really just code that extends a normal HTML page

To be more correct, it should be said the JSP creates a normal HTML page. What is sent to the browser is not an extended HTML page, but a good old-fahioned normal HTML page just like any other.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: download zip in jsp
It's not a secret anymore!