graph chart

Area Graph Examples

[ Graph Home ] [ Documentation ] [ Getting Started ] [ Solutions ]

Servlet Example 3 - Configuration from Server Processes

If you do not see the graph image below then click here»


The Servlet is setup here to read both the configuration data and the graph data from a server side processes, in this case a Java Servlets running on our web server.

and here is the HTML code,

<img src="http://localhost:8080/servlet/AreaGraphServlet?
width="460" height="440">

The areadata.php ( click here to view code ) is a simple PHP script designed to demonstrate how a server script can be used to return data to either the graphing applet or servlet. In practice this routine would be expanded to first gather data from any number of data sources. eg. databases, files other server processes.

The areaprops.php ( click here to view code ) again is just a simple PHP script to demonstrate the method. Again, in practice this method would be expanded to derive data from a number of data sources.

For a full explanation of and range of values for the above parameters please see the Documentation - Configuration Options».

« back to Examples Index

« back to Getting Started

[ Graph Home ] [ Documentation ] [ Getting Started ] [ Solutions ]




The servlet examples are designed to run on the local machine and require that Servletrunner ( part of the JSDK environment ) has already been installed. If you haven't already done so then you should implement the JSDK environment first, see

(The graph servlet will of course work with all servlet engines. If you wish to view the examples with another servlet engine then you will need to adjust the example pages to point to your servlet engine ).

Once you have installed the JSDK environment please copy all the files in the ./Servlet/ directory to the JSDK servlet directory ( usually c:\JSDK2.0\examples\ ). Now start the ServletRunner and then click on the examples below.


Getting Started



Common Problems
This section describes and provides solutions to common problems.