I.T. Skill Areas
Computer Certifications I currently hold
Self-Study Certification Books
News, Web log, Weblog, Blog
Veiled Chameleon Care Sheet
Veiled Chameleon Care Sheet
Frequently Asked Questions
If you like this website or webpage, please link it. I could use the help. Thanks.

June 09, 2004

XHTML <object> tag, not <applet> tag

I have been absolutely pulling my hair out trying to get a java applet to both validate and run under XHTML 1.1. The java applet is a panorama applet which I can get to work and validate in Mozilla, but does not work in Internet Explorer. The code I am using (and which I think is right) is the following:

<object codebase="java" classid="panorama.class" height="196" width="460" >
<param name="panorama" value="http://www.veiled-chameleon.com/images/hikes/grandeur-peak/grandeur-peak-full-circle.jpg" />
<!--[if !IE]> Mozilla/Netscape and its brethren -->
<object codebase="java" classid="java:panorama.class" height="196" width="460" >
<param name="panorama" value="http://www.veiled-chameleon.com/images/hikes/grandeur-peak/grandeur-peak-full-circle.jpg" />
<!-- <![endif]-->

Here is some information about the panorama java applet.

If any of you are able to make this work, I'd appreciate a comment.


Note: xhtml 1.1 java object tag applet tag internet explorer mozilla validates


Even though there is a "codebase" attribute associated with the "object" tag, it apparently doesn't do the same thing as the "codebase" attribute of the "applet" tag. Instead the codebase equivalent of the applet's tag is a "param" tag embedded between the "object" tags:

<param name="codebase" value="java" />

And there's more. Here's the final code I'm using:

<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" height="196" width="460" >
<param name="codebase" value="java" />;
<param name="code" value="panorama" />;
<param name="panorama" value="http://www.veiled-chameleon.com/images/hikes/grandeur-peak/grandeur-peak-full-circle.jpg" />;
<!--[if !IE]> -->;
<object codebase="java" classid="java:panorama.class" height="196" width="460" >;
<param name="panorama" value="http://www.veiled-chameleon.com/images/hikes/grandeur-peak/grandeur-peak-full-circle.jpg" />;
<!-- <![endif]-->

Solved, then. It's amazing that the documentation for this sort of thing is so difficult to find (non-existent?). I'd love to know what that classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" is all about.

Posted by Jeff at June 9, 2004 10:16 PM


to learn what
is all about.

Posted by: java java at January 20, 2005 09:12 PM

I have this in my browser setting`s and it does not say what it is,and i am suspishus about it ,is it spy ware.

Posted by: alan hutchinson at May 1, 2005 09:19 PM

It is not spyware.

Posted by: Jeff at May 2, 2005 11:23 AM

Hey man, the site is great. I am trying to figure out how to get one of my pages validated in xhtml 1.1 and it has only one error. grrr. mail me back for more info.

Posted by: Jason at June 16, 2006 06:14 PM

Hi I am trying to invoke an applet from JSP.but it is throwing some exceptions like java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(Unknown Source)
at sun.plugin.cache.JarCacheUtil.getJarsWithVersion(Unknown Source)
at sun.plugin.AppletViewer.createClassLoader(Unknown Source)
at sun.plugin.AppletViewer.appletInit(Unknown Source)
at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)

and basic: Exception: java.lang.ClassNotFoundException: pricedev.applet.DevelopPriceGridApplet.class
java.lang.ClassNotFoundException: pricedev.applet.DevelopPriceGridApplet.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

plse give me some light in this issue. Thanks in advance.

Posted by: Eldho Jacob at January 29, 2007 03:48 AM

What do you mean by "invoke an applet from JSP"? An applet run in the browser. JSP runs on the server.

Posted by: Gunnar Liljas at January 31, 2007 10:59 AM

Post a comment

Remember personal info?

Comment Spammers: Amazing...there's not any comment nor trackback spam anywhere on this weblog. And yet this weblog receives thousands of spam attempts every week. You'd think that these guys would instead devote their resources to sites where they have a chance.

. Original Copyright, May 2004. All Rights Reserved.