jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Printing part of JSP page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Printing part of JSP page" Watch "Printing part of JSP page" New topic
Author

Printing part of JSP page

Rishi Kant
Greenhorn

Joined: Apr 18, 2000
Posts: 18
My JSP page has two parts.The top part has buttons for different forms.The bottom part has the forms.Initially I thought of using frames but thats against company standards.When I click on a button say Form# 1, then the whole page refreshes and form# 1 shows up in the bottom part and buttons on top.When I click on Print button, the form gets printed WITHOUT THE BUTTONS...Can this be done in a JSP page without frames?
Please help
Thanks
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17038
    
  26

I saw a neat trick in a magazine article a short while back where the "visible" attribute of the buttons was turned off for printing - a trick that requires enabled JavaScript and CSS.
For the more general approach, you could do like some of the magazine websites and put a "Click Here for Printer-friendly version" on the page.


An IDE is no substitute for an Intelligent Developer.
 
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: Printing part of JSP page
 
It's not a secret anymore!