Overview
Being able to dynamically generate graphs and charts from data stored in databases in real time makes the graphing functions incredibly powerful.
Security Considerations
In order for an Applet to directly access the data within a database it must be provided with the logon information to that database. If this information is available to an applet then it is also available to anyone else who wishes to obtain it. Hence it is never a good idea to have an applet directly access a database.
To overcome this the Graphing Applets access databases (and other data sources) via Server Side Scripts and Processes. The basic idea is that the graph function will issue a request to such a server side script for the data, this in turn will access the database and return the data back to the graph function.
In this way the database logon information is kept securely on the server.
The ./ServerTemplateScripts/ directory of this package contains some example server side scripts which may be adapted for a particular implementation. In addition the
Tutorials show these methods in more detail.
Data Interface Scripts can be constructed in any Server Side Scripting Language including, PHP, JSP, ASP, Servlets, Perl etc.
Essential Tutorials and more Database Methods:-