This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JSP and the fly likes opening a pdf from jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "opening a pdf from jsp page" Watch "opening a pdf from jsp page" New topic

opening a pdf from jsp page

Ranch Hand

Joined: Jan 24, 2006
Posts: 54
How to open a pdf from a jsp page
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Technically, you don't.
A JSP is interpreted on the server.

I assume you want to open one in the user's browser.
If so, you do it the same way you would from a static HTML page.
Create a hyperlink that points to your PDF.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
subject: opening a pdf from jsp page
It's not a secret anymore!