aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes accessing java class from javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "accessing java class from javascript" Watch "accessing java class from javascript" New topic
Author

accessing java class from javascript

kamesh aru
Ranch Hand

Joined: Mar 16, 2002
Posts: 150
can any guide me how to access the java class methods from javascript ?
thanks in advance
Kj Reddy
Ranch Hand

Joined: Sep 20, 2003
Posts: 1704
Originally posted by kamesh aru:
can any guide me how to access the java class methods from javascript ?
thanks in advance


Have a look in the following link:

http://webreference.com/javascript/reference/core_ref/packages.html

Hope it helps to you
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42277
    
  64


That link is about the Rhino JavaScript engine, which is written in Java, and not to my knowledge used in any browser. I assume you're talking about JavaScript in the context of a browser. In that case you're looking for a technology called LiveConnect, which enables two-way communication between Java applets and JavaScript within a web page. Unfortunately, LiveConnect is not supported by all browsers. Here is a test page you can use to check your browser.


Ping & DNS - my free Android networking tools app
Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429
In any case, what exactly are you trying to accomplish?

-Yuriy
[ August 10, 2005: Message edited by: Yuriy Zilbergleyt ]
 
Don't get me started about those stupid light bulbs.
 
subject: accessing java class from javascript