The applet tag can be followed by parameters:
-
<applet . . . >
-
<param name=attributename1 value="attributevalue1" >
-
.......
-
<param name=attributenameN value="attributevalueN" >
-
</applet>
|
The Java program accesses this information by
-
String attribute;
-
attribute = getParameter("attributename1");
-
if( attribute == null )
-
attribute = yourdefaultvalue;
-
// null is Java way of saying unset
|
Typically this processing would be in init() method of Applet
|