On Sat, 20 Aug 2005 00:51:16 +0200, cym tronik wrote:
> On Fri, 19 Aug 2005 14:05:26 GMT, Andrew Thompson
> <> wrote:
...
>>Perhaps it would help to see the complete statement written
>>in the original JSP that *generates* this HTML.
>
> ok, here it is. My jsp file:
>
> <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
You do not need a transitional doctype on this web page,
and the leading '\"' is invalid for HTML. I suggest..
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
> <HTML><HEAD><TITLE>JApplet</TITLE></HEAD>
> <BODY>
<div>
> <jsp
lugin type="applet"
> code="ASV_applet.class"
> codebase = "/ASV_site"
> width="700" height="600">
> </jsp
lugin>
</div>
> </BODY></HTML>
Which leaves only 11 errors for the undefined
<EMBED>/<NOEMBED>/<COMMENT> elements and the
attributes associated with them.
(This is an irritation for me, as I usually like to
validate HTML before proceeding, but it is impossible
when using the nested <OBJECT>/<EMBED> structure.)
OK.. I've changed the parameters, so I'll trim the rest
of your 'what Tomcat said'...
The above .JSP produces (in my tomcat)..
***
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<HTML><HEAD><TITLE>JApplet</TITLE></HEAD>
<BODY>
<div>
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="700"
height="600"
codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0">
<PARAM name="java_code" value="ASV_applet.class">
<PARAM name="java_codebase" value="/ASV_site">
<PARAM name="type" value="application/x-java-applet;">
<COMMENT>
<EMBED type="application/x-java-applet;" width="700" height="600"
pluginspage="http://java.sun.com/products/plugin/"
java_code="ASV_applet.class" java_codebase="/ASV_site"
>
<NOEMBED>
</COMMENT>
</NOEMBED></EMBED>
</OBJECT>
</div>
</BODY></HTML>
***
That HTML prompted me to install the plug-in, but I
chose to ingore/cancel it, since I use 1.5 Java in Mozilla
I assume that mimics the behaviour you are seeing in FireFox?
...I saw a suspicious character in that output and removed
it, to produce this (note: *1* character different)..
***
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<HTML><HEAD><TITLE>JApplet</TITLE></HEAD>
<BODY>
<div>
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="700"
height="600"
codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0">
<PARAM name="java_code" value="ASV_applet.class">
<PARAM name="java_codebase" value="/ASV_site">
<PARAM name="type" value="application/x-java-applet;">
<COMMENT>
<EMBED type="application/x-java-applet" width="700" height="600"
pluginspage="http://java.sun.com/products/plugin/"
java_code="ASV_applet.class" java_codebase="/ASV_site"
>
<NOEMBED>
</COMMENT>
</NOEMBED></EMBED>
</OBJECT>
</div>
</BODY></HTML>
***
Here, that second HTML produce an NPE when the browser
could not find the class.
Try it in your FireFox.
Ray.. do you still wonder why I avoid using the 'easy'
'<jsp

lugin' way of placing applets in pages?
Sun seems to not have the first clue when it comes to
...about everything related to HTML and JavaScript, I
would prefer to rely on the applet element.
--
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"I have to turn my head, until my darkness goes"
The Rolling Stones 'Paint It Black'