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 ...
Get LDAP Programming with Java™ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.