This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes JFreeChart Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "JFreeChart" Watch "JFreeChart" New topic
Author

JFreeChart

Mudit Srivastava
Ranch Hand

Joined: Apr 30, 2007
Posts: 38
Hi All,

I'm currently using Struts 2.0.6. I want to allow my action to generate and return charts/graphs that can be be included in my web page. How can I use JFreeChart to accomplish this.

Regards
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41068
    
  43
The two principal ways are either to a) use the JFreeChart API to create a chart and write it to a JPEG file which your JSP page can then link to, or b) use a library like cewolf that puts a tag library wrapper on top of JFreeChart (see the link in my signature).


Ping & DNS - my free Android networking tools app
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Or use the JFreeChart plugin.
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Hi Mudit..

i suggest you to use Jfreechart plugin which provided by struts2..

Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Or possibly the JFreeChart plugin.
Mudit Srivastava
Ranch Hand

Joined: Apr 30, 2007
Posts: 38
Thanks for the help guys..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFreeChart
 
Similar Threads
graph in jsp using data from database
JFreeChart...
HOWTO: Charts to PDF
integrate JFreeChart 0.9.21 with iReport 0.3.2
problem with sealed jar file creation