Document view servlet 1.1


It is a Java servlet lets you deploy document viewer from Google Docs for your files. Simply map this servlet to your .pdf (Acrobat), .ppt (Power Point) files etc. and let all your users view them regardless of their local systems. How to use it:

a) download docviewPackage.jar into your WEB-INF/lib directory.

b) define DocViewServlet in your web.xml file.
 


    <servlet>
     <servlet-name>DocView</servlet-name>
     <servlet-class>com.jsos.docview.DocViewServlet</servlet-class>
    </servlet>

c) define a mapping:
 


    <servlet-mapping>
     <servlet-name>DocView</servlet-name>
     <url-pattern>/*.pdf</url-pattern>
    </servlet-mapping>

in this case servlet will service all the requests to your .pdf files. So in your applications you can use an ordinary hyperlink some like this: <a href="/myfile.pdf">Open PDF</a> for the file viewer.

    For downloading:   docviewPackage.jar

 © Coldbeans Software     Comments?

See also JSOS - the largest collection of servlets and filters.

Also in JSOS: