Accessing Native methods from a Java Applet
by Sanket Bakshi, s.bakshi@ebsolutech.com |
|
Previous
section: The Solution – Invoking JNI calls from the
Applet
The
Management of Applet and Web Page communication can be summarized as follows –
o The parameters
are passed to the applet while loading by the <PARAM>
tag
o JavaScript cannot
call applet functions for both IE and Netscape when using the Plug-in. To
overcome this, we can reload the applet passing different parameters every time
for different functions. The different functions are then called from the Init
method of the applet.
o Activate the
MAYSCRIPT tag in the HTML code to allow Java to JavaScript communication
o Use the JSObject
to access JavaScript resources from the Java Applet
©
2001 – EBSolute Technologies