The
following series of examples demonstrate the most common
implementations for the servlet form of the graph.
All
of 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 http://java.sun.com/products/servlet/
(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 ./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.
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 http://www.jpowered.com/graph_chart/index.htm