How to print page with JSP

Discussions

Web tier: servlets, JSP, Web frameworks: How to print page with JSP

  1. How to print page with JSP (2 messages)

    Hi everyone
    I'd like to make a print button to print my
    page.How can i do this with JSP?
    Can anyone give me example or or some link?
    Thanks

    Threaded Messages (2)

  2. How to print page with JSP[ Go to top ]

    U can use java.awt.print package
     U can use these Classes for Printing.
    Paper,PageFormat,PrinterJob,Pageable,Printable etc.

    Njoy
    http://lokeshpant.blogspot.com
  3. How to print page with JSP[ Go to top ]

    I think you mean to print from the browser directly - so as not to force the user to click on the print button.

    In that case you could use:

    <form>
    <input type="button" value="Print this page" onClick="window.print()">
    </form>

    see..

    http://www.javascriptkit.com/howto/newtech2.shtml

    (Note: This really has nothing to do with JSP)