graph chart

Advanced Pie Chart

2D / 3D Pie Chart, version 3.2
by Sirius Computer Consultants Limited

Servlet Examples

The following series of examples demonstrate the most common implementations for the servlet form of the graph.

The servlets are of course designed to reside within a servlet engine on your web server with nothing to install on the client machine. However for the purposes of demonstration the following 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 http://java.sun.com/products/servlet/

If you wish to view the examples working with your servlet engine on your web server then in addition to placing the servlet files on your web server you will also need to modify the <IMG> tag of the following html pages. Currently the <IMG> tag is set to point to the local machine,
<img src="http://localhost:8080/servlet/HbarchartServlet?
which should be changed to,
<img src="http://url_of_your_webserver/servlet/HbarchartServlet?

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

Servlet Example 1
In this example the servlet will acquire both the configuration and graph data from text files.

Servlet Example 2
The servlet is setup here to read the configuration data from a text file and the graph data from a server side process, in this case a Java Servlet.

Servlet Example 3
Here the applet will acquire both the configuration and graph data from server side processes. ( Java servlets ).

Servlet Example 4
This example demonstrates how to implement the servlet so that the graph data is acquired from a database. Here we set up the servlet to acquire the configuration data from a text file and the graph data from a server side process which in turn acquires the data from a database.

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

Note: If you are using the evaluation version then in the applet a pop-up window will appear upon the startup and an evaluation message will be incorporated by the servlet. Both these features have been removed from the licensed version. Licensing information can be found at

 

Examples

Contents

Introduction

Applet Examples
Servlet Examples
Applet - Servlet Combination

Licensing and Purchasing Options

Documentation

Further Information and Support

More Graph and Chart Functions