This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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: 16098
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
 
subject: Printing part of JSP page