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 Applets from JavaScript

Netscape Navigator 3.0 and more recent versions use a technology called LiveConnect to enable Java, JavaScript, and browser plug-ins to interact. To be accessed from JavaScript, the methods in a Java applet must be public methods. As mentioned in Chapter 8, try to minimize any potential security risks when writing your public methods. For example, do not write a public method that simply writes to the file system or connects to the network.

After you write an applet with the public methods that you want exposed to JavaScript code, request permissions to connect to the network (if your LDAP server is not on the same machine as your Web server) and sign your applet. For more information on requesting privileges ...

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