This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 60810
    
  65

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating a download Link in Servlet
 
Similar Threads
JSP: DownLoad a file
how to create a link to download pdf file?
download a csv file from jsp
download file using h:commandLink or h:graphicImage
application that allows to download a file