Detailed explanation of JSP application syntax (2)

Source: Internet
Author: User

8) labels:
Forward a request object. You can pass parameters. The target file must be able to process parameters.
Before use, the JSP file has data, so the File Execution will fail.
Attribute:
-Page = "URL or expression" indicates the URL of the file to be forwarded or an expression representing the URL.
-Name parameter name value parameter value.
9) labels:
+
Allows dynamic files and static files. Dynamic files are executed by the JSP compiler. You cannot determine whether the file name is dynamic or static. parameters can be passed.
Attribute:
-Page = "URL or expression" must contain the relative path of the file, or represent the expression of the relative path.
-Flush = "true" you must use flush = "true" here. You cannot use false. The default value is false.
One or more parameters can be passed to a dynamic file, and multiple parameters can be transferred on a page.

10) labels:
Before obtaining the bean property value, you must use create bean. Name to specify the ID of the newly created bean. Only the JavaBean
Attribute:
-Name = "bean name" is specified by the ID attribute.
-Property = "bean property" specifies the bean property name.

11) labels:
Name = "bean ID"
{
Property = "*"
Property = "propertyname" [Param = "parametername"]
Property = "propertyname" value = "{string | }"
}/>
The value of name should be in the value of ID
Multiple methods to set the property value: String 2
Match the attributes in the bean by using all the values entered by the user (stored in the request object as parameters ).
Matches the attribute specified in bean with the value specified by the user.
Use an expression to match bean attributes at runtime
Attribute:
-Name = "bean name" indicates the bean variable set by the ID in.
-Property = "bean property name" value = "Name of the property to be set" if you use property = "*", bean properties do not need to be sorted in the order in the HTML form.
-Property = "*" stores all the values entered by the user in the JSP to match the attributes in the bean. the attribute name in bean must be the same as the parameter name in the request object. the parameter values transmitted from the client to the server are generally character types. These strings must be converted to other types in order to be matched in the bean, the following table lists the bean attribute types and their conversion methods. convert string to other
Type method, property type method:

Read full text: http://www.javah.net/JSP_JSF/20070506/792.html

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.