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.
Hi Ramdas, To display the PDF file in your browser you must have any one of the following things.. 1) Your Desktop must have the (PDF reader like Acrobat) other wise 2) Your Browser must have the plug in to display the .PDF files.
okie come to the point .. in your Servlet or JSP .. first you to set the content type as (MIME) txt/pdf and you to read tat stream as well as u have to write it in your page .. You can get the source code from the "Google" Search.. If u cant get the code please feel free to ask me ..