Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Printer Friendly Servlet

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I would like to create a printer friendly servlet and link to this via a number of jsp's. Basically, I would like to be able to click on a "Printer Friendly" link within a jsp, pass through the HTML that is created from the jsp to the printer friendly servlet, and then in the servlet remove unnessecary information.
My question is ;
How do I pass through the HTML that makes up the page the person is currently viewing.
As far as I am aware, my only alternative is to pass through a URL to the servlet and then within the servlet, re-request the information and parse the HTML output to remove what I don't want. The drawback of this is it will mean submitted the same query again. I would like to avoid this situation if possible.
Any ideas ??
Thanks,
Chris
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic