JSP application syntax (3)

Source: Internet
Author: User

12) labels:
Id = "beanInstanceName"
Scope = "page | request | session | application"
{
Class = "package. class" |
Type = "package. class" |
Class = "package. class" type = "package. class" |
BeanName = "{package. class |}" type = "package. class"
}
/> Other elements
To create a JavaBeans component, you first try to locate a Bean instance. If it does not exist, a new one will be created.
Attribute:
-Id = "Name of the created Bean variable"
Confirm the Bean variable in the scope you define. You can use this variable name in subsequent programs to distinguish the variable names of different beans from the variable names that are case sensitive, if this Bean has already been created in another project, the value of this id must be consistent with the original one.
-Scope = "page | request | session | application" Bean's valid range and id variable name. The default value is page.
13) labels:
Type = "bean | applet"
Code = "classFileName"
Codebase = "classFileDirectoryName"
[Name = "instanceName"]
[Archive = "URIToArchive,..."]
[Align = "bottom | top | middle | left | right"]
[Height = "displayPixels"]
[Width = "displayPixels"]
[Hspace = "leftRightPixels"]
[Vspace = "topBottomPixels"]
[Jreversion = "Maid number | 1.1"]
[Nspluginurl = "URLToPlugin"]
[Iepluginurl = "URLToPlugin"]>
[
[
[]
[Text message for user]
It is used to play or display an object (typically an applet and Bean) in a browser, and this display requires the java Plug-in the browser. when the jsp (preferred for SUN Enterprise Applications) file is compiled and sent to the browser, the tag will be replaced
Or element. note: HTML 4.0 is used for HTML 3. 2. in general, this label specifies whether the object is an Applet or Bean. It also specifies the class name and location, and also specifies where to download the Java Plug-in.
Attribute:
-Type = "bean | applet" indicates the type of the plug-in object to be executed. You must specify the Bean or applet because there is no default value for this attribute.
-Code = "classFileName" is the name of the Java Class executed by the Java Plug-in. It must end with. class. This file must exist in the directory specified by the codebase attribute.
-Codebase = "classFileDirectoryName"
The directory (or path) of the Java Class file to be executed. If you do not provide this attribute, use the jsp of this label (preferred for SUN Enterprise applications) the Directory of the file will be used.
-Name = "instanceName"
The name of this Bean or applet instance, which will be called elsewhere in jsp (preferred for SUN Enterprise applications.
-Archive = "URIToArchive ,..."
Some path names separated by commas. These path names are used to pre-install some classes to be used, which improves the applet performance. Similar to classpath.
-Align = "bottom | top | middle | left | right"
The position of the image, object, and Applet.

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.