Sign in to follow this  
ravivarma434

Fusioncharts using JDBC Datasource in JSP

Recommended Posts

Hi Team,

 

I followed the below link to generate the 2D/3D chart using Datasource with JSP. While running the jsp, getting blank screen.

 

http://docs.fusioncharts.com/charts/contents/?Code/J2EE/JSP_BasicExample.html#_ga=1.230867802.418366346.1430721233

 

I have removed the template tags for the rendering section. Can you please share the sample example code that works with the JDBC datasource.

Initially tried with the Resful Webservices, but in one of the blog found that the Fusioncharts support is not available using services.

 

Attached the JSP file & the error message while executing the JSP in the Tomcat Server.

 

Best Regards,

Ravi

home-jsp.txt

post-65908-0-58559800-1432727135_thumb.png

Edited by ravivarma434

Share this post


Link to post
Share on other sites

In this section, we will show you how to use FusionCharts and JSP to plot charts from data contained in a database. Here, we will do the following:

  • Create a pie chart to show "Production by Factory" by initially using the dataStr method first.
  • TConvert the chart to use the dataURL method.
  • Next, we will create a multi-series line chart from database.

For the sake of ease, we will use MySQL Database. The database is present in Download Package > Code > J2EE > DB folder. You can, however, use any database with FusionCharts including MS Access, MySQL, MS SQL, Oracle. Database creation script for MySQL is also present in the same folder.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this