Group: comp.lang.java.programmer
From: alexa.smith@gmx.net
Date: Friday, March 07, 2008 7:30 AM
Subject: Re: JavaScript calling java methods

On Mar 7, 6:57 am, ezhil...@gmail.com wrote:
> Hi
>
> Is there any possibility of javascript calling java methods.. it is
> possible in case of java program using applet and even possible with
> JSP. Is it possible to get on with the usual Java classes. Let me know
> if thats possible..
>
> Thanks..

Hi!

Yes it's possible.

For example you has a applet with tag name="MyApplet".
From JavaScript you can call the "public"-Method "public String
getAnything() {...}" of the Applet with MyApplet.getAnything();

Important: Only the public Methods of your Applet-class are callable!

Give me feedback if it works!

regards
Alexa

News in English | Binaries Groups | 20lbs in 30 days