Applet - Servlet Combination
This example demonstrates how to implement both the applet and servlet together
so that all the interactive features of the applet are presented to the user and also giving the user the option of printing the
page containing the graph.
On this page we implement the servlet ( which acquires both the configuration
and graph data from data files). This page is almost identical and contains the servlet implementation which is universally printable.
The configuration data is acquired from the text file barprops.txt
(click here to view)
and the graph data is acquired from the text file bardata.txt (click here to view).
and here is the HTML code,
<img src="http://localhost:8080/servlet/SVbarchartServlet?
config=http://www.jpowered.com/graph_chart_collection/StackedVerticalBarGraph/Examples/barprops.txt&
data=http://www.jpowered.com/graph_chart_collection/StackedVerticalBarGraph/Examples/bardata.txt"
width="450" height="440">
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
|