• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can i download the JSP's displayed data in PDF format  RSS feed

 
suresh myageri
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a JSP page.i am setting a list of values from action class.
I am displaying the same data in JSP.I want to enable downloading the same data from my page in PDF format.Say i have a download button if i press it i need the data in PDF format which i will store into my local disk.

Please help me in achieving this functionality

Regards
Suresh
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing in the JSP (or Java) API for building PDFs.

There are, however, third party libraries that can be used to build PDFs on the fly.
iText, Apache FOP, and Flying Saucer are a few that come to mind.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!