Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printing part of JSP page

 
Rishi Kant
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic