How to display PDF in JSP using Iframe
843840Jun 16 2009 — edited Jun 16 2009Hi 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