O'Reilly logo

LDAP Programming with Java™ by Tony Dahbura, Rob Weltman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Accessing Java Objects from JavaScript

In Netscape Navigator you can use the LiveConnect technology to access Java packages, classes, methods, and variables directly from JavaScript code. You do not need to write an applet with public functions in order to access Java.

When you invoke the constructor for a Java class in JavaScript, LiveConnect creates a wrapper object for that Java object. Invoking methods and accessing properties for the wrapper object causes methods to be invoked and properties to be accessed in the Java object.

Behind the scenes, the following special LiveConnect objects are used as wrappers for Java objects:

  • JavaArray is a wrapped Java array that you access from JavaScript code.

  • JavaClass is a reference to a Java class in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required