Jfree Charts with Struts Frame work

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
agh
Posts: 9
Joined: Thu Mar 02, 2006 10:28 pm

Jfree Charts with Struts Frame work

Post by agh » Thu Mar 02, 2006 10:36 pm

Hi ,

I would like to use Jfree charts in my Struts application. I read some of the postings. I could not understand exactly How to use in Struts.

What objects should go where?
Suppose i have action class where I am pulling the data from the Database to generate the graph.

Can I write the Graph code after that?
How Can I forward it JSP and display it
Anyone has any example and what is the best approach with your experience.

I appreciate your help..

Thanks,
AGH

anjali
Posts: 7
Joined: Thu Sep 11, 2003 9:51 am
Location: India

Post by anjali » Fri Mar 03, 2006 11:46 am

To start using struts and Jfreechart follow few steps:
1) Write a wrapper class which will create instance of Jreechart . So that we can use this class in our development.
2) Write implementation class where you will be calling wrapper class and it's methods.
3)Write DataBase utils class where you can write DB specific methods, i.e opening connections , closing connections, taking result sets etc..
3) In Struts Action class you can call this class.
Well, I have done this long time back and i dont have sample with me.. Will write simple example on weekend and post .

agh
Posts: 9
Joined: Thu Mar 02, 2006 10:28 pm

Jfree Charts with Struts Frame work

Post by agh » Fri Mar 03, 2006 3:36 pm

Thanks a lot.. I am waiting for your samples..
I really appreciate you..
Thanks

Locked