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!

How to display PDF in JSP using Iframe

843840Jun 16 2009 — edited Jun 16 2009
Hi All,

I am using Struts 2. I am building my file in ActionClass with seperate Method like getGeneratedPDF() in which, I am setting header of response and writing into PDF.

This method will be called from JSP by this way

s:property value="getGeneratedPDF()" />

But It displayed Junk Characters , and this PDF is not static (already Generated). It is generated and build on Fly.

I have 2 questions 1 -- How to display PDF in JSP in proper way without Junk Character in it?
questions 2 -- How to display it in Iframe?

Please help me , If you know the solution.

Thanks in Advance,

Jimmy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 14 2009
Added on Jun 16 2009
1 comment
1,684 views