The <jsp:plugin> element is used to play or display an object in the browser (typically applets and beans), and this display needs to be in the browser's Java plugin.
When a JSP file is compiled, the,<jsp:plugin> element will be replaced with a <object> or <embed> element according to the browser version when sent to the browser. Note that,<object> is used for HTML 4.0,<embed> for HTML 3.2.
In general, the,<jsp:plugin> element specifies whether the object is an applet or a bean, and also specifies the name of the class, as well as the location, and also specifies where the Java plug-in will be downloaded. Specifically as follows:
Property
Type= "Bean | Applet
. The type of plug-in object that will be executed, you must specify whether this is a bean or an applet, because this property has no default value.
Code= "Classfilename"
The name of the Java class that will be executed by the Java plug-in, which must end with. class. This file must exist in the directory specified by the CODEBASE property.
Codebase= "Classfiledirectoryname"
The directory (or path) of the Java class file that will be executed, and if you do not provide this attribute, the directory using the <jsp:plugin> JSP file will be used.
Name= "InstanceName"
The name of this bean or applet instance, which will be invoked elsewhere in the JSP.
Archive= "uritoarchive, ..."
Some path names separated by commas that are used to preinstall some of the class that will be used, which improves the performance of the applet.
align= "Bottom | Top | Middle | Left | Right
The position of the graphic, object, applet, with the following values:
Bottom
Top
Middle
Left
Right
height= "Displaypixels" width= "Displaypixels"
The long, wide value that the applet or bean will display, which is a number, in pixels.
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.