The moose likes Servlets and the fly likes printing problem in portlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "printing problem in portlet" Watch "printing problem in portlet" New topic

printing problem in portlet

chetan maheshwari

Joined: Jun 21, 2002
Posts: 3
till know we were doing printing of browser page through window.print() command,in JSP.
But now we were using JSP's within the portlet par file.Now the problem is instead of printing only the text content of the tables it also prints the components(Gif's, Images, bars etc) used within the window.
Note :browser contents are not getting printed , onlt the window within the browser is getting printed.I need to print onlt the text content of the tables which is there in the form of report.
So can u suggest us a way to achieve our task of printing a page displayed on browser without printing the window contents.
waiting for ur quick reply
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13024
Some portals add a link to a "printable page" which renders the main text content instead of the page loaded with graphics.
chanoch wiggers
Ranch Hand

Joined: May 24, 2001
Posts: 245
which as a side effect allows you to log the number of people who care enough to print the stuff off.
I know I appreciate the care taken to make the printouts less full of rubbish that will snarl up the printer.

chanoch<p><a href="" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
subject: printing problem in portlet
It's not a secret anymore!