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 first page we implement the applet Clicking on the note at the foot
of the graph will bring up an almost identical page which 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,
<applet code="VbarchartApplet.class" archive="Vbarchart.jar" width="450"
height="440" mayscript>
<!-- Start Up Parameters -->
<PARAM name="LOADINGMESSAGE" value="Creating Chart - Please Wait."> <!-- Message to be displayed
on Startup -->
<PARAM name="STEXTCOLOR" value="0,0,100"> <!-- Message Text Color-->
<PARAM name="STARTUPCOLOR" value="255,255,255"> <!-- Applet Background color -->
<!-- Data files -->
<PARAM name="chartproperties" value="barprops.txt">
<PARAM name="chartdata" value="bardata.txt">
</applet>
For a full explanation of and range of values for the above parameters please
see the Documentation - Configuration Options».
|