Meaningless Drivel is fun!
The moose likes Applets and the fly likes applet re-write issues with SUN JRE. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "applet re-write issues with SUN JRE." Watch "applet re-write issues with SUN JRE." New topic

applet re-write issues with SUN JRE.

vaithee sub

Joined: Mar 12, 2004
Posts: 20
Hi All,
We are in the process of using SUN JRE for running applets on client's internet explorer (version 6.0) as Microsoft would not extend its support for MS JVM after the end of this year. I am using classid and codebase in the object tag to enforce the jdk version 1.5.0.
There seems to be an issue in Applet Activation. By applet activation I mean the java script code needed to rewrite the applet tag inorder to activate it.
Also, I am using netscape.javascript package for event handling and applet to java script communication.
The issue with sun jvm is as follows.
When the applet is rewritten, the applet's reference to the window containing it (The html/jsp page) is lost and hence, I am not able to call the java scripts from Applet using netscape.javascript APIs.
To be more precise,
JSObject JSWin = JSObject.getWindow(this); fais or throws a run time exception.
This works fine if I remove the re-write applet java script function but the applets will be left un-activated untill user clicks it.
Can any of you throw a light on how to fix the issue. (i.e) rewrite the applet and at the same time be able to call java scripts from the applet using netscape.javascript using sun jre.
[ March 20, 2007: Message edited by: vaithee sub ]
Morten Nobel-Joergensen

Joined: Mar 27, 2007
Posts: 1
Have you tried using an external script to generate the applet tag? That must me the best solution (if it works).

Kind regards,
I agree. Here's the link:
subject: applet re-write issues with SUN JRE.
It's not a secret anymore!