1. the applet must be able to run first.
2. After deploying the project to Tomcat, put the Applet Class file and JSP in the same directory, and put the JAR file used in the applet in the same directory.
3. The method for referencing the Applet Class in JSP is similar to the following:
<JSP: plugin <br/> type = "applet" <br/> code = "Treeview. class "<br/> codebase = ". "<br/> archive =" prefuse. jar "<br/> width =" 100% "<br/> Height =" 100% "<br/> </jsp: plugin>
Code is the class used, codebase is the path of the jar package, point indicates the current path, archive indicates the jar used
4. If other files are used in the applet, you must have the permission to access the files. Otherwise, an access denied error will be reported!
Welcome to join us!
In this case, go to C:/program files/Java/jre6/lib/security and add the following to Java. Policy:
Permission java. Security. allpermission;
Go to grant!