This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I assume you actually want to convert HTML to PDF? If you can make the HTML to be CSS-styled XHTML, then the FlyingSaucer library can help (possibly within in a servlet filter before the page is sent to the browser).
If the data is tabular data then the DisplayTag library may help.
Joined: Dec 25, 2011
my jsp data is in tabular format.
I want that on click of a button the jsp data should be displayed in pdf format.
Could you please explain the solution in more detail, i dint get the solution clearly
Joined: Sep 21, 2011
There's nothing to "get", really - check out the two libraries I mentioned to see what they can do. This will involve creating sample code of your own. Both libraries come with extensive documentation, so it shouldn't be hard to get going. After you've done that, you'll be in a position to judge whether they satisfy your requirements.