This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "download zip in  jsp" Watch "download zip in  jsp" New topic
Author

download zip in jsp

Kota li
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 61056
    
  66

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: download zip in jsp