One reason that Java is so popular on the Web is security. Because applets run in the context of the browser, the browser can strictly control what the applet can and can't do. This is a benefit for users, but for developers, it's somewhat restrictive. Of course, you can digitally sign your applets and hope that users will elect to relax security restrictions against them, but this isn't an ideal solution. The best answer is to find a way to work within the existing security structure. For example, suppose you want to write an applet that needs to store data. You have very few choices. You can't write to a file on the client computer. However, you can open a network connection back to the server and write the file on the server. This requires a program on the server that listens for the applet and handles its requests.
展开▼