Urgent : Any sample with JSP and JFreeChart?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
HELP!

Urgent : Any sample with JSP and JFreeChart?

Post by HELP! » Fri Aug 17, 2001 10:00 am

Hi,

I am currently trying to generate chart by retreiving the data from the oracle database using jsp. Is there any working sample or example which I can look at?

Tried the taglibs from the site but couldn't get the example to work.

Thanks in advance!

HELP!

David Gilbert

RE: Urgent : Any sample with JSP and JFreeChart?

Post by David Gilbert » Sat Aug 18, 2001 7:40 pm

Hi,

I don't have anything available. If someone wants to post something, it would be much appreciated...

Regards,

Dave Gilbert.

HELP!

RE: Urgent : Any sample with JSP and JFreeChart?

Post by HELP! » Mon Aug 20, 2001 2:00 am

Hi,

I am now trying to configure the jfreechart and the taglibs for developing charts using JSP. However I encountered some problems. I tried to compile the file ChartTag.java from the taglibs.zip but there are 2 errors as follow :

C:\Tomcat\webapps\chart\WEB-INF\classes>javac ChartTag.java
ChartTag.java:39: cannot resolve symbol
symbol : variable VERTICALBAR_TYPE
location: class com.jrefinery.chart.JFreeChart
private String type = JFreeChart.VERTICALBAR_TYPE;
^
ChartTag.java:169: cannot resolve symbol
symbol : method createChart
(java.lang.String,com.jrefinery.chart.DataSource)
location: class com.jrefinery.chart.JFreeChart
JFreeChart chart = JFreeChart.createChart(type, categoryData);
^
Realised that the JFreeChart.java from jfreechart-0.5.6 and the
JFreeChart.java from the taglibs.zip are of different sizes.
I have tried to update the jfreechart.jar with the JFreeChart.java from taglibs.zip but the errors are still there.

What should I do to run the example from the taglibs.zip?
Thanks a lot!

Regards,

HELP!

Locked