jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Print Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "Print" Watch "Print" New topic



Joined: Nov 04, 2001
Posts: 1
Hi All,
I am having a button in the browser PAGe at the bottom.When the user clicks on it , It has to print all the pages & I am trying to do this by using servlet.Any idea!!
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
If you want the page to print on the user's local printer -- you can't do that with a Servlet -- you can, however do it with JavaScript. If you want it to print on a printer known to the server (at the server's location) you can use the Java printing facilities that are part of the JDK.
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Malhar Barai
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
if u want the script to "print" the page on client side...write back...i'll post it for u...
good luck

Malhar Barai
SOA & Java Book
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Print
It's not a secret anymore!