Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Print

 
arvindhs
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear
if u want the script to "print" the page on client side...write back...i'll post it for u...
good luck
malhar
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic