Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to open a PDF within a PDF viewer embedded in a html page

843838Oct 18 2006 — edited Oct 18 2006
Hi. I'm trying to modify a jsp that opens a runtime generated pdf. Originally, the pdf is opened by prompting the Adobe Reader program, but now I need to open the pdf within the jsp (which also have other content, not just display the pdf). I tried to embed the pdf in an iframe (similar to this: http://www.cs.tut.fi/~jkorpela/html/iframe-pdf.html ), but not works, it still prompts the Adobe Reader program. Actually the pdf content is generated on runtime and output through a servlet's output stream (this servlet is written by someone already left), what i did is try to open this servlet url in an iframe. If the iframe src is really a pdf file, it really works. But now the url is a servlet that output a pdf, is there anything special needed to do in the servlet in order to fulfill my requirement?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 15 2006
Added on Oct 18 2006
2 comments
225 views