• Post Reply Bookmark Topic Watch Topic
  • New Topic

Page Print in Servlet

 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
is it possible to give user option to print a particular page using Servlets.
thanx
malhar
 
Kripal Singh
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are trying to provide a link for printing the page you can use this code in your servlet
out.println("<a href=\"javascript:window.print();\">Print This Page</a>");
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!