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
examples to the right.
|
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 servlet will acquire both the configuration
and graph data from server side processes. ( Java
servlets ).
Configuring the Servlet
for Database Connectivity
There are various methods by which the graphing servlet
can be set to acquire data from databases including:-
Direct
Database Binding
Database Script Interface
For a full dicussion on the varius methods and example
scripts please see the
Tutorial section - click here.
|