Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to download Zip file in Servlet?  RSS feed

 
Himansh Sing
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to download a Zip file on servlet. First I create it and then want the user to choose the location to save it.
Please provide me some sample code.

Thanks
 
Akhilesh Trivedi
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want zip file to move from server to client or client to server? If the file is there on server and user only has to save it, just provide an a href link. that should do.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

Just for future reference please note that it is Javaranch policy to not simply give out source code, see NotACodeMill for details.

Also you'll find that this is a fairly common topic so if you SearchFirst you'll tend to find existing answers

Now to your question , I suspect some of the links from ServletsFaq will help you out!

Hope that helps!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!