Summary of embedded Applet in JSP

Source: Internet
Author: User

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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.