JSP Application Grammar detailed encyclopedia (iii)

Source: Internet
Author: User
Tags variable
js| (Syntax 12) Tags:
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, and if it does not, you create a new one.
Property:
-id= "created bean variable name"
To confirm the bean's variables in the scope you defined, you can use this variable name in a later program to distinguish the variable name of a different bean from the case sensitivity, and if the bean is already created in another, the value of that ID must be the same as the original ID value.
-scope= "page | Request | Session | Application The scope of the bean's existence and the valid range for the ID variable name. The default value is page.
13) Label:
Type= "Bean | Applet
Code= "Classfilename"
Codebase= "Classfiledirectoryname"
[Name= "InstanceName"]
[archive= "uritoarchive, ..."]
[align= "bottom | top | middle |
[height= "Displaypixels"]
[width= "Displaypixels"]
[hspace= "Leftrightpixels"]
[vspace= "Topbottompixels"]
[jreversion= "Jreversionnumber | 1.1"]
[nspluginurl= "Urltoplugin"]
[iepluginurl= "Urltoplugin"] >
[
[
[ ]
[text message for user]
Used to play or display an object in a browser (typically applets and beans), and this display needs to be in the browser's Java plug-in. When the JSP file is compiled and sent to the browser, the label will be replaced with the browser version
or an element. Note For HTML 4.0, for HTML 3.2. In general, this tag 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 to download the Java plugin.
Property:
-type= "Bean | Applet "The type of plug-in object that will be executed, you must specify whether this is a bean or applet, because this property has no default value.
The name of the Java class that-code= "Classfilename" will be executed by the Java plug-in must end with. class, which must exist in the directory specified by the CODEBASE attribute.
-codebase= "Classfiledirectoryname"
Directory of Java class files (or paths) that will be executed, if you do not provide this attribute, the catalog of JSP files using this label 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. Similar to classpath.
-align= "Bottom | Top | Middle | Left | Right
The position of the graphic, object, applet.

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.