• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

accessing java class from javascript

 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can any guide me how to access the java class methods from javascript ?
thanks in advance
 
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


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



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.
 
Ranch Hand
Posts: 429
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In any case, what exactly are you trying to accomplish?

-Yuriy
[ August 10, 2005: Message edited by: Yuriy Zilbergleyt ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic