PDF Viewer on Web

How can I use PDF Viewer in my Java JSP Web Application? Currently we
show jpg's as thumbnails. We would like to replace this with pdf's. I
saw PDFView and PDFViewSample samples. They both apply to stand alone
applications. Is there a sample code to display pdf from web page?

Thank you