• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

download zip in jsp

 
Kota li
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to download zip file from jsp while clicking hyper link
 
Sam Gardner
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic