Create an HTML page to run the applet

Copy the file html/docs/tutorial/java-corba/runjavatut.html to the html/classes/TutorialApps subdirectory in your EAServer installation. This file has the OBJECT and EMBED tags required to launch the applet in the Sun Java Plug-in:

<html><body bgcolor="#FFFFFF">
<head><title>This Applet runs the  EAServer tutorial Java component.</head></title>
<hr>
<center>

<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH = 600 HEIGHT = 400  codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
<PARAM NAME = CODE VALUE = "TutorialApps/JAClient.class" >
<PARAM NAME = CODEBASE VALUE = "/classes" >
<PARAM NAME = ARCHIVE VALUE = "easj2ee.jar,easclient.jar" >
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="false">
<PARAM NAME="ior" VALUE ="iiop://:9000">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.3"  
   CODE = "TutorialApps/JAClient.class" 
   CODEBASE = "/classes" 
   ARCHIVE = "easj2ee.jar,easclient.jar" 
   WIDTH = 600 HEIGHT = 400 
   ior = "iiop://:9000"
   scriptable=false 
   pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html">
<NOEMBED>
</COMMENT>
<h2>This would be a Cool Applet, but you are not running a Java enabled browser...</h2>
</NOEMBED>
</EMBED>
</OBJECT>

</center>
<hr>
</body></html>

No changes are required to this HTML file if your server is configured to use the default IIOP port number, 9000. If you (or your administrator) changed the IIOP port number after installing EAServer, edit the port number in the HTML file to match. You must edit the port number in both the OBJECT and the EMBED tag. In the OBJECT tag, the port number appears in this line:

<PARAM NAME = "ior" VALUE ="iiop://:9000">

In the EMBED tag, the port number appears in this line:

   ior = "iiop://:9000"

About the OBJECT and EMBED tags

You can skip this section if your only goal is to run the tutorial applet. If you are modifying the tutorial code to run your own applets, you need to understand these tags.

The OBJECT tag is required to load the applet in Internet Explorer. The EMBED tag is required to load the applet in Netscape. You can run Sun’s HtmlConverter tool to convert standard APPLET tags to equivalent OBJECT and EMBED tags. HtmlConverter is available at the Java Plug-in Web site.

The OBJECT and EMBED tags contain similar parameters. See the Java Plug-in Web site for full documentation of the tag formats. The parameters of interest for this tutorial are: