| The Servlet is setup here to read both the configuration data and the graph
                          data from server side processes, in this case 2 Java Servlets SHbarConfigServlet and SHbarDataServlet.
                           and here is the HTML code, <img src="http://localhost:8080/servlet/SHbarchartServlet?config=http://localhost:8080/servlet/SHbarConfigServlet&
 data=http://localhost:8080/servlet/SHbarDataServlet"
 width="450" height="440">
 The SHbarDataServlet ( click here to view
                          code ) is a simple servlet designed to demonstrate how a servlet can be used to return data to either the graphing applet
                          or servlet. As you will see the main routine ( doGet() ) uses the method GraphData() to construct the return data. Although in
                          this example the GraphData() routine simply builds the return data from 'hard coded' values, in practice this routine would be
                          expanded to first gather data from any number of data sources. eg. databases, files other server processes.  The SHbarConfigServlet ( click here to view
                          code ) again is just a simple servlet to demonstrate the method. The routine ConfigData() is used to construct the return
                          data from 'hard coded' values. Again, in practice this method would be expanded to derive data from a number of data sources. There are various methods by which the graphing servlet can be set to acquire
                          data from databases including:- Direct Database BindingDatabase Script Interface
 For a full discussion on the various methods and example scripts please see theTutorial section - click here.
   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 |