Conclusion

In this chapter we have discussed how to access applets and built-in Java objects from JavaScript in a safe and efficient way. JavaScript is an effective glue for tying together Java applets on a Web page or for binding Java applets to HTML-type form elements. In Netscape Navigator, you can also use JavaScript to access any built-in Java classes and objects, such as the Java LDAP classes. If not a lot of processing needs to be done, then having all the client code in JavaScript rather than in Java may make your HTML page appear more quickly, since no applets need to be downloaded. In addition, JavaScript does not need be compiled before use.

However, JavaScript has certain limitations compared to Java, and the Java LDAP classes can ...

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.