Today you are going to know how to create chart from an jsp page.
Creating a Chart is easy in java.Before writing code first understand prerequirements clear. All you need is first download the org.jfreechart library Download it from
In order to view links, you must have to reply to this thread.
After Downloading check the lib folder whether you have all the jars mentioned below
gnujaxp.jar
iText-2.1.5.jar
jcommon-1.0.16.jar
jfreechart-1.0.13.jar
jfreechart-1.0.13-experimental.jar
jfreechart-1.0.13-swt.jar
junit.jar
swtgraphics2d.jar
And if you are using servlet then you need servlet.jar to compile it and for database I use Mysql if you use other get related drivers for mysql
mysql-connector-java-3.0.16-ga-bin.jar or any latest version
Then If you are using eclipse set the jar file in to classpath as mentioned below
Right click project name in project explorer ->build path->configure build path->select java build path->click
libraries->add external jar->point to your jar location
or if you are using tomcat copy all jar into web-inf->lib folder
Ok lets create needed databases for the chart see part2