aspose file tools*
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 8 in Action this week in the Java 8 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: 60072
    
  65

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
 
Similar Threads
download any file from servlet..
Zip of JSP file in the JAVA?
tomcat download
Download zip or .gz file from server
downloading a file from server