This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Print" Watch "Print" New topic
Author

Print

arvindhs
Greenhorn

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!!
Thanks
Arvind
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
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
------------------
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
Author
Ranch Hand

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


Malhar Barai
SOA & Java Book
 
 
subject: Print
 
Similar Threads
Printing from Applet
Doubt on Expression Language
passing arrays
PageFormat and PrintRequestAttributeSet
post increment operator