Jump to content

Charts in Struts2


manishwadhwa

Recommended Posts

Hi,

I have created some reports for my application (Based on Struts 2.0). Now I want to display some bar charts in my reports. I have tried it in many ways but haven't got success.

I want to populate Barchart using java beans.

It would be great if someone can provide me any small example (source code) for it.

Thanks.

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

HI,

    Just populate the data in the form of Bean classes and put all the beans information in the List and pass that list to the parameter to the JRBeanCollectionDataSource class.Thats it. One more thing is u have to add 2 jars:JFreeChart.jar and JCommon.jar

 

 

 

 

 

Link to comment
Share on other sites

Thanks for your reply.

I am not clear that in what form, I should populate the data in the javabean and how this data would be retrieved by the API to display the charts.

Can you please provide me a sample application that simply display a barchart. It will be more helpful if the application uses the JChart with struts2 framework.

Thanks.

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...