Microsoft SDK for Java

Using the HTML 4.0 OBJECT Tag

If you want to treat the Bean as an ActiveX control in Microsoft® Internet Explorer 4.0 (for example, to gain access to COM interfaces on that object), skip the javareg process and just use the HTML 4.0 OBJECT tag. Internet Explorer 4.0 queries the object directly for its Typeinfo data rather than having to rely on the Typelib information generated by javareg.

The HTML 4.0 OBJECT tag specification is supported by the Microsoft VM in Internet Explorer 4.0 so that you can use the OBJECT tag instead of the APPLET tag to run Java applets from a local or remote codebase. For example, the following code fragment could be used to load the Java class myprogram.one from http://www.one.come/two/three/.

<OBJECT classid="java:myprogram.one">
        codebase="http://www.one.come/two/three/">
</OBJECT>

Note   The Microsoft VM only provides access to COM interfaces for Java classes loaded using the OBJECT tag. The APPLET tag is handled in a different manner internally. For more information on HTML 4.0 and the OBJECT tag, go to the World Wide Web Consortium's Web site This link takes you to a site outside of microsoft.com and see the HTML Specification.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.