wood burning stoves 2.0*
The moose likes Servlets and the fly likes Creating a download Link in Servlet 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 » Servlets
Bookmark "Creating a download Link in Servlet" Watch "Creating a download Link in Servlet" New topic
Author

Creating a download Link in Servlet

Paul Okeke
Ranch Hand

Joined: May 16, 2009
Posts: 58
Hi friends
I am have some documents on my server which i will like my clinet to download for offline use.

My problem is how to create the download link so the when a user clicks on the link,
a window will pop up asking the user to either save/open the file.


OCJP 1.6
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Search for "content-disposition".


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Paul Okeke
Ranch Hand

Joined: May 16, 2009
Posts: 58
Bear Bibeault thank for fast and useful response.

I am reading your write up in JSP just before this reply.

Thanks, I which to be like you, Solution provider
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Creating a download Link in Servlet