This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60046
    
  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
download file using h:commandLink or h:graphicImage
how to create a link to download pdf file?
JSP: DownLoad a file
application that allows to download a file
download a csv file from jsp