Your question is a little bit vague. If your concern is how to display the same data in a format that is good for viewing versus a format that is good for printing you could set up separate results in your struts-config.xml (or struts.xml if you're in struts2) file for your action. Each result could take you to a jsp (one for viewing one for printing) and you could decide which you wanted to go to in your action class. If this wasn't what you were looking for please post a more specific question.
If your are talking about any reporting tool then i would suggest Jasper Reports
or just presentation of data in a grid view or table format even a jsp can handle it
VenuGopal Reddy P
Joined: Sep 01, 2009
Thank you for your reply.
I know the ireport tool, but i would like to use itext or pdf box libraries to create and print the reports.are there any other libraries to create pdf reports? Can you please suggest the best one? And i do not want to present any data in a grid view or table.