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

Printable version of jsp/HTML

 
Vani Bandargal
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We need to add print functionality for the every page that we are developing in Struts environment.
I am looking for some generic solution where a printable version of the page(Preferably a PDF) will be generated based on elements in Jsp.
What I mean is, let's say I change my Jsp to add one more element(textbox,dropdown), I want my print version of Jsp to automatically take care of the new element.

I do not have any problem producing some printable version of a form from the rendered html if at all there is a way to accomplish the same task much easier.

All I need is to be able to have some generic solution for a printable version of every page we develop

Please advice me the best approach.

Thank you very much for all your advice
[ December 28, 2006: Message edited by: Vani D Bandargal ]
 
Arulanand Dayalan
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try Print style sheets, so that you could control the way the elements get printed.

Hope this Helps.

Regards,
Arul.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic