• Post Reply Bookmark Topic Watch Topic
  • New Topic

Applets with IE - difference between Tomcat and plain HTML?  RSS feed

Herbert Bernards
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I've an applet, that should run out of an apache-tomcat-6.0.18 and that should be seen with Internet Explorer 7.0 and with Firefox 3.

The applet does work in a plain HTML-Page with IE and with FF:

<TITLE>Applet Test</TITLE>
<applet code="Applet.class" archive="applet1.jar" width="90%" height="90%" />

(Applet-Code lies within the JAR-File in the same directory with the HTML-file.)

If I open this HTML-file with the Internet Explorer 7, the applet does work!

My next step was trying this applet delivered by Tomcat 6.0.18.
I've edited the file SOMEWHERE\apache-tomcat-6.0.18\webapps\ROOT\index.html
and added the following line to the HTML-source:

<applet code="Applet.class" codebase="." archive="applet1.jar" width="90%" height="90%" />

Second I've put the JAR-File applet1.jar in the directory SOMEWHERE\apache-tomcat-6.0.18\webapps\ROOT

If I now open the page http://localhost:8080/ with my Firefox 3-Browser, I see the Tomcat-Root-Page containing my correctly rendered applet.

If I open the page http://localhost:8080/ with my IE-7-Browser, the applet won't be rendered, the IE just stops rendering the HTML, when the <applet>-tag is reached.

The security-settings in the IE are:

- Java-Plugin-installed and activated
- popupblocker deactivated
- http://localhost is a trusted site
- security for trusted sites is set to very low
- scripting of java-applets activated
- use Java-Sun JRE for <applet>

To sum it up, I've set the security as low, as it can get, but still the applet won't start.

So where's my error? What's the difference between displaying the mere-HTML-file vs. the Tomcat-startpage?
Why does the Applet showup in Firefox, why does it not showup in IE?

Any help is very appreciated!


Java Console says at Page-Reload in IE:

basic: Starting applet teardown
basic: Finished applet teardown
basic: Fortschritts-Listener hinzugefĆ¼gt: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@13e58d4
basic: Applet geladen
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 111675 us, pluginInit dt 65177365 us, TotalTime: 65289040 us
basic: Applet initialized
basic: Fortschritts-Listener entfernt: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@13e58d4
basic: Applet made visible
basic: Starting applet
basic: Applet started
basic: Told clients applet is started
Herbert Bernards
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...issue solved, I've used .
If I use a fixed width, even IE 7.0 shows my applet...
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!