Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Applets with IE - difference between Tomcat and plain HTML?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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:

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

(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!

Greetings,
Herbert

UPDATE:
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
Greenhorn
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...
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic