File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Downloading the PDF file from server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Downloading the PDF file from server" Watch "Downloading the PDF file from server" New topic

Downloading the PDF file from server

Ravi Saluru

Joined: Nov 01, 2011
Posts: 11


I am just learning and implementing java at my work place, I tried to search on how to troubleshoot the issue but failed.

The scenario is that, on the website -> there is a download button.
When the user clicks on the download button, the file download pop-up should appear, and the user should have the option to save it in the pdf format.

The file on the server is in the form of an image, and also in the form of a pdf file.

Looking forward to your valuable suggestions.

Thanks and Regards,
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Maybe this will help you:

[] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Miku Ranjan
Ranch Hand

Joined: Oct 11, 2011
Posts: 98
What you want to send in response you can put accordingly you have to change the response content type and header and will get result too.
I agree. Here's the link:
subject: Downloading the PDF file from server
It's not a secret anymore!