Ramdas Sawant
Welcome to JavaRanch!
In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section
here.
In particular, please see
EaseUp to find out how adding the
word "urgent" to your posts will usually slow down or stop responses.
Again, welcome to JavaRanch and good luck with your question.
-Ben
As to your question:
Browsers can't display PDFs on their own. A PDF viewer (such as Acrobat) is needed. Some browsers can embed Acrobat as a plugin and will appear to display your PDF in the browser.
To do this, you need to add a Content-Dispostion header with the 'inline' keyword.
Search this and the
JSP forum with keyword 'Content-Dispostion' for more information.
If you're only providing a link to the PDF (as opposed to streaming it with your own code) you may not be able to control what headers are sent.