What's So Different about an Applet?

Java applets run within browsers and have additional restrictions that do not apply to stand-alone Java applications. Typically, browsers restrict the capabilities of an applet to prevent potential security problems (for example, to prevent a rogue applet from damaging files on the system or from making unwarranted connections to sites on the Internet and passing information to those sites). These restrictions or boundaries are typically referred to as the sandbox (as in "applets can work only within the sandbox").

One of the main restrictions of the sandbox is that an applet cannot make network connections to other systems. This limitation presents a problem for developers who want to create applets that ...

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.