Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
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
I agree. Here's the link:
subject: opening a pdf from jsp page
jQuery in Action, 3rd edition