Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Jsp to pdf

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do i convert a jsp file into a pdf format?

My jsp file displays the data but I need to display the data in a pdf format so how do i do it?
 
Saloon Keeper
Posts: 6530
160
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
niks singh
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



Hello,

my jsp data is in tabular format.

I want that on click of a button the jsp data should be displayed in pdf format.
 
niks singh
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am not using servlet

i am using struts
 
Marshal
Posts: 67430
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you've already been given two possible ways to approach it. Which have you chosen?
 
niks singh
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you please explain the solution in more detail, i dint get the solution clearly
 
Tim Moores
Saloon Keeper
Posts: 6530
160
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic