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
Jfree Charts with Struts Frame work
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 .
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 .
Jfree Charts with Struts Frame work
Thanks a lot.. I am waiting for your samples..
I really appreciate you..
Thanks
I really appreciate you..
Thanks