Servlet Example 3
The Servlet is setup here to read both the configuration data and the graph data from a server side processes, in this case a Java Servlets running on our web server.
and here is the HTML code,
<img src="http://localhost:8080/servlet/LineGraphServlet?
config=http://www.jpowered.com/siriusjava/servlet/LineConfigServlet&
data=http://www.jpowered.com/siriusjava/servlet/LineDataServlet"
width="500" height="420">
Thes LineConfigServlet ( 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 datasources.
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