views:

357

answers:

4

I'm trying to plot the system CPU utilization in a JSP page.

I'm using JFreeChart library to do so, I have a problem,

The generation of the graph I've written in a Servlet and that generates an image, so on the JSP page it flickers and reloads the image.

Is there a better way to implement it as I want to see a continuous flowing graph and not an image?

NOTE: I'm using ajax call to the servlet.

+1  A: 
  1. Java Applet

  2. Flash

  3. A Javascript plotting library maybe (such as this or this)

  4. Something else I haven't thought of

kazanaki
@kazanaki: like your style of answering. Applet, out of the question, Flash, not sure since the product would be running on Mac-Safari. Shall look @ the JS.
Panther24
A: 

Another alternative is a Java Web Start application that queries the servlet for updates.

trashgod
A: 

Are you opposed to delivering the chart as an applet, say as outlined here?

andersoj
I cannot use Applet!!
Panther24
A: 

hello sir,, I am chaya,,i have plotted pie graph,bar graph and line graph using jfreechart and already connected to the database and i am getting the output in applet,,plz help me how to connect to the jsp to get graphs in our required jsp page..plz help me sir,,i am trying from long daz... thank u..

chaya
Chaya, let me understand this right, you want to convert your applet to JSP code?
Panther24
Chaya, try the link I'm providing, they might help you get started, 1. http://javabeanz.wordpress.com/2007/07/10/displaying-dynamic-charts-in-a-jsp-page-jfreechart/ or http://www.roseindia.net/chartgraphs/areachart-jsppage.shtml
Panther24