kishore wrote:
> Yes, I have HTML tabs that were generated by JSP.
> 4 tabs content will come from the server as a response and another two tabs
> content comes from an external URL. For ex: <iframe name='QAFrame'
> width='100%'
> height='100%' src='http://www.google.com' frameborder='yes'
> scrolling='yes'></iframe>
So one of the 4 tabs has to contain a PDF.
Is this a static PDF somewhere on your server?
Or is a dynamically generated PDF?
If it's a static PDF, then the question is off-topic.
You can open the PDF in an external viewer (using
"Content-Disposition", as "attachment") or in a browser
plug-in ("inline").
If the PDF has to be "part of the HTML", you should use
the <embed> or <object> tag.
(Google for the words between quotes/brackets if you
need examples.)
The same applies for a PDF that is dynamically generated,
with as main difference the fact that you'll have to write
a Servlet that produces the PDF.
You can also use a JSP, but as you know, you shouldn't use
JSP to create binary files (IMHO it should be forbidden to
use JSP to produce PDF).
A servlet that produces PDF will typically use an API such
as iText. How to use iText in a web context is explained in
chapter 9 of the second edition of "iText in Action":
http://itextpdf.com/book/
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/