You need the object tag around your applet if you are deploying a Swing based applet and you need to force your users to use the jvm from the Sun
Java plugin. The best way to get a properly formatted object tag is to download the free Sun html converter
(
http://java.sun.com/products/plugin/1.3/docs/html_converter.html) and run it on your html or
jsp page. This will automatically comment out your applet tag and replace it with a correctly formatted object tag, plus an embed tag for yucky Netscape. So the result of converting this tag:
<APPLET CODE = "SwingApplet.class" WIDTH = 500 HEIGHT = 550>
<PARAM NAME = CODE VALUE = �SwingApplet.class" >
<PARAM NAME = CODEBASE VALUE = "classes" >
<PARAM NAME = ARCHIVE VALUE = "SwingApplet.jar" >
<PARAM NAME = TYPE VALUE ="application/x-java-applet;version=1.3">
</APPLET>
Would be this converted tag:
<!--"CONVERTED_APPLET"-->
<!-- CONVERTER VERSION 1.3 -->
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH = 500 HEIGHT = 550 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0" NAME="SwingApplet">
<PARAM NAME = NAME VALUE = "SwingApplet" >
<PARAM NAME = CODE VALUE = " SwingApplet.class" >
<PARAM NAME = CODEBASE VALUE = "classes" >
<PARAM NAME = ARCHIVE VALUE = "SwingApplet.jar" >
<PARAM NAME=TYPE VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="false">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.3" NAME="SwingApplet" CODE = " SwingApplet.class" CODEBASE = "classes" ARCHIVE = "SwingApplet.jar" WIDTH = 500 HEIGHT = 550 type = "application/x-java-applet;version=1.3" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html">
<NOEMBED>
</COMMENT>
</NOEMBED></EMBED>
</OBJECT>
<!--
<APPLET CODE = "SwingApplet.class" WIDTH = 500 HEIGHT = 550>
<PARAM NAME = CODE VALUE = �SwingApplet.class" >
<PARAM NAME = CODEBASE VALUE = "classes" >
<PARAM NAME = ARCHIVE VALUE = "SwingApplet.jar" >
<PARAM NAME = TYPE VALUE ="application/x-java-applet;version=1.3">
</APPLET>
-->
<!--"END_CONVERTED_APPLET"-->
Also, an inserted parameter is "scriptable". You have to make sure and set this to true if you want to call any public applet methods from JavaScript.
Julia