Creating a Web Page for the Applet

The fact that Netscape Navigator ignores the CABBASE applet parameter (used by Internet Explorer to locate the CAB file of an applet) and Microsoft Internet Explorer ignores the ARCHIVE tag (used by Navigator to identify the JAR file of an applet) is fortunate because it means you can have a single Web page that makes both a signed CAB file and a signed JAR file available for users of both browsers:

     <APPLET CODE="snazzy.class"
             CODEBASE="jars"
             ARCHIVE="snazzy.jar"
             WIDTH=100 HEIGHT=100>
             <PARAM NAME="cabbase" VALUE="snazzy.cab">
     </APPLET>

If the CAB or JAR file is not already present on the user's system when the Web page is loaded, the browser downloads the appropriate file and starts the applet.

Get LDAP Programming with Java™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.