Solaris Java Plug-in User's Guide

Java Plug-in in Internet Explorer and Netscape Navigator Browsers

The OBJECT tag in Internet Explorer and the EMBED tag in Netscape Navigator browsers allows your HTML page to use Java Plug-in if the HTML page is browsed on Microsoft Windows platforms or Solaris operating environments. However, if the HTML page is on the Internet/intranet, the page is likely to be browsed by both Internet Explorer and Netscape Navigator browsers. You should activate the Java Plug-in if both Netscape Navigator browsers and Internet Explorer will browse the same HTML page. You can do this using the Java Plug-in OBJECT tag, as follows:

Original APPLET tag:


<APPLET code="XYZApp.class" codebase="html/" align="baseline"
          width="200" height="200">
<PARAM NAME="model" VALUE="models/HyaluronicAcid.xyz">
No Java 2 SDK, Standard Editoin v 1.4 support for APPLET!!
</APPLET>      

New OBJECT tag:


<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="200" height="200" align="baseline"
codebase="http://java.sun.com/jpi/jinstall-14-win32.cab#Version=1,4,0,mn">
<PARAM NAME="code" VALUE="XYZApp.class">
<PARAM NAME="codebase" VALUE="html/">
<PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.4">
<PARAM NAME="model" VALUE="models/HyaluronicAcid.xyz">
<PARAM NAME="scriptable" VALUE="true">
<COMMENT>
<EMBED type="application/x-java-applet;jpi-version=1.4" width="200"
    height="200" align="baseline" code="XYZApp.class" 
    codebase="html/" model="models/HyaluronicAcid.xyz"
    pluginspage="http://java.sun.com/jpi/plugin-install.html">
<NOEMBED>
</COMMENT>
        No Java 2 SDK, Standard Edition v 1.4 support for APPLET!!
</NOMEMBED></EMBED>
</OBJECT>

Because Internet Explorer understands the </OBJECT> tag, it will try to launch Java Plug-in. Notice that the <COMMENT> tag is a special HTML tag understood only by Internet Explorer. Internet Explorer ignores test between the <COMMENT> and </COMMENT> tags. In effect, the above tags actually become:


<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="200" height="200" align="baseline"
codebase="http://java.sun.com/jpi/jinstall-14-win32.cab#Version=1,4,0,mn">
<PARAM NAME="code" VALUE="XYZApp.class">
<PARAM NAME="codebase" VALUE="html/">
<PARAM NAME="model" VALUE="models/HyaluronicAcid.xyz">
<PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.4">
<PARAM NAME="scriptable" VALUE="true">
   No Java 2 SDK, Standard Edition v 1.4 support for APPLET!!
</NOEMBED></EMBED>
</OBJECT>

This is identical to the OBJECT tag example outlined above. The </NOEMBED> and </EMBED> and tags are ignored by the OBJECT tag because there are no corresponding <NOEMBED> and <EMBED> tags.

Because Netscape Navigator browsers do not understand the OBJECT and COMMENT tags, they read the above tags as follows:


<EMBED type="application/x-java-applet;jpi-version=1.4" 
    width="200" height="200"
    align="baseline" code="XYZApp.class" codebase="html/"
    model="models/HyaluronicAcid.xyz"
    pluginspage="http://java.sun.com/jpi/plugin-install.html">
<NOEMBED>
    No Java 2 SDK, Standard Edition v 1.4 support for APPLET!!
</NOEMBED>
</EMBED>	

This is identical to the EMBED tag example outlined above. A Netscape Navigator browser ignores tags because they are an HTML extension in an Internet Explorer browser only.

This example illustrates that you can use the combined OBJECT-EMBED tag to activate Java Plug-in in the browser if either Internet Explorer or a Netscape Navigator browser is used. This combined tag is strongly recommended unless your HTML page is browsed by users in a homogeneous environment. The Java Plug-in HTML Converter from Sun Microsystems automatically converts HTML pages into this tag style for you.