aspose file tools*
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
Author

opening a pdf from jsp page

Confused
Ranch Hand

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

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: opening a pdf from jsp page