Implementing Graphing Servlets
Each graph style is available as a Java Servlet. The ./ServletFiles/ directory of the downloadedpackage contains the class files for each graph style.(
)The Servlet Graphs operate on the Web Server within a Servlet Engine (eg. Tomcat, WebSphere,WebLogic, JRun etc). A graph is added to a page via the standard HTML IMG tag where SRC elementis set to the URL of the graphing servlets. When the page is viewed the browser will send therequest for the graph to the web server which, in turn, will pass the request to the Servlet Engineand the graphing servlet. The graphing servlet will then dynamically construct the graph imagewhich is then returned back to the browser where it is displayed to the user.
Web Server Requirements
The web server will need to have a Servlet Engine set-up and installed in order to operate thegraphing servlets (eg. Tomcat, WebSphere, WebLogic, JRun etc).There are no special requirements on the client browser
Set Up and Implementing Procedure
A graph servlet can be added to a web page with the following steps:-
This procedure may vary slightly between different Servlet Engines and as such you may also need to refer to your SerEngine's documentation.With most modern Servlet Engines the Graphing Servlet class files will need to be installed as a web application. Thegraphing servlets have been built within the package jpowered.graphs which can be found in the ./ServletFiles/ directoThe following describes how the JPowered Graphing package would be added to Tomcat 5.5.a) Under the ./webapps/ directory of the Tomcat installation create this directory structure:-
b) From the ./ServletFiles/ directory of the downloaded package copy the ./jpowered/ directory and all it's contents to t./webapps/jpowered/WEB-INF/classes/ created in the previous step.c) From the ./ServletFiles/ directory of the downloaded package copy the web.xml file and place this in the./webapps/jpowered/WEB-INF/ directory of Tomcat.d) Restart Tomcat
Step 2 - Set up the Configuration data
The graphing servlets provide the following two options for inputting the configuration data.
a) with a Configuration File.