| 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
|
 |
 |
|
|
subject: PDF repot for struts
|
|
|