Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

PDF file and JSP  RSS feed

 
Mike Yu
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
When we click a link (in a JSP or HTML page) that links to a PDF file, Adobe Acrobat is open and the PDF file is displayed in a browser. What I have seen is that the only content in the browser is this PDF document. Is it possible to make a page that contains both the PDF document and other HTML or JSP stuff?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably not directly, but you could embed the PDF in an iframe if that suits your purpose.
hth,
bear
 
Sandep Chaturvedi
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can definitely not mix html and pdf. They are two different documents. This is ensured by the content type of the response (application/pdf for pdf and text/html for html). They can be viewed together using frame.
 
Mike Yu
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear and Sandep,
Thank you for your info. It is very helpful.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!