Applet HTML Syntax 
Java applets are embedded into HTML pages using APPLET or OBJECT tags.
The APPLET tag includes attributes to specify the height, width, and name of the applet. You can use these attributes when you are using Web page scripting to control your applets. The following attributes point the Web browser to the compiled Java code:
CODE attribute specifies the class filename
CODEBASE attribute specifies the path to the archive file
ARCHIVE attribute specifies the archive files
The archive file optimizes download times by packaging all SAP Manufacturing Integration and Intelligence (SAP MII) client-side Java classes into a compressed file. Inside the APPLET tag, PARAM tags may be used to pass parameters that control or affect applet behavior or appearance.
To use an SAP MII applet in your Web pages, include the following applet tags.
<APPLET NAME="TrendChart" CODEBASE="/XMII/Classes" CODE="iChart" ARCHIVE="illum8.zip"
WIDTH="800" HEIGHT="400" MAYSCRIPT>
<PARAM NAME="QueryTemplate" VALUE="FillingArea/SampleQuery">
<PARAM NAME="DisplayTemplate" VALUE="FillingArea/SampleChart">
<PARAM NAME="ShowTagDescription" VALUE="true">
<PARAM NAME="RefreshRate" VALUE="1">
</APPLET>
The PARAM tags are specific to an applet and/or data source. The CODE attribute, which notes the component you want to embed, is the attribute that is different between the applets. The MAYSCRIPT attribute is only required if you manipulate the applet using Web page scripting or trigger Web page scripting from an applet event such as a click on the chart legend or a grid row.
Note
Many Web page authoring tools automatically insert much of this HTML code when you insert an applet into a Web page. We recommend that you use the Dynamic Page Generator or the Microsoft FrontPage® or Dreamweaver® add-ins, which automatically create the necessary syntax. For more information, see Using the Dynamic Page Generator.