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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access