aspose file tools*
The moose likes Struts and the fly likes PDF repot for struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "PDF repot for struts" Watch "PDF repot for struts" New topic
Author

PDF repot for struts

Nitin Belaram
Ranch Hand

Joined: Mar 24, 2009
Posts: 67
Hi,

Can anyone please suggest how to generate itext PDf report for struts application.
Any source code example will be great.

Thanks
roshni sivan
Greenhorn

Joined: Nov 23, 2008
Posts: 20
Hello,

Include itext-1.3.jar in lib folder. I have used iText library for creating PDF reports. Code from my application included. Hope this helps.



And method generatePDFReport in my DAO is as follows:



roshni sivan
Nitin Belaram
Ranch Hand

Joined: Mar 24, 2009
Posts: 67

Hi,

Please explain


1: How you are getting values for various report in dao from query resultset
2: How you are getting values in various heading
3: And from dao it is send to Action class.
4: Does your values are display in table
roshni sivan
Greenhorn

Joined: Nov 23, 2008
Posts: 20
Hello,
In the previously presented code, I am not getting any data from database. In our application, I was using iText library for generating graphical reports where I will be getting data from a postgreSQL database. The following method will be called from an action class.

Nitin Belaram
Ranch Hand

Joined: Mar 24, 2009
Posts: 67
Where does PDf report file is view, Does the output display in PDF file.

What to do if resultset reurturn more then one row.,Then how to dispaly them in table
 
jQuery in Action, 2nd edition
 
subject: PDF repot for struts