Meaningless Drivel is fun!*
The moose likes Struts and the fly likes Creating reports in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Creating reports in struts" Watch "Creating reports in struts" New topic
Author

Creating reports in struts

VenuGopal Reddy P
Greenhorn

Joined: Sep 01, 2009
Posts: 9
Hi All,

I am developing a web application using struts, there I need to generate some reports which can be printed if needed. can anybody suggest me how that can be achieved in struts.


Thanks,
Kitti


Tom Rispoli
Ranch Hand

Joined: Aug 29, 2008
Posts: 349
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.
binu narayanan
Ranch Hand

Joined: Jul 24, 2009
Posts: 56
Reddy

you can be little more specific.

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
Greenhorn

Joined: Sep 01, 2009
Posts: 9
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.


Thanks,
Kitti
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating reports in struts
 
Similar Threads
Jasper Report in Struts2
configuring crystal reports w/ struts
Jasper Report
Java and EJB - Interview Questions
Generating Reports in JSP struts