File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "applet re-write issues with SUN JRE." Watch "applet re-write issues with SUN JRE." New topic
Author

applet re-write issues with SUN JRE.

vaithee sub
Greenhorn

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.
Reference:
http://www.rgagnon.com/javadetails/java-0526.html
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
Greenhorn

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,
Morten
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: applet re-write issues with SUN JRE.
 
Similar Threads
Ping Utility tool
Reading a particular entry in Registry?
create new event
How to read hard disk physical serial number?
Check main hard-drive serial number