js| (Syntax 8) Tags:
Forwards a Request object. The object file must be able to handle parameters. If you use a non-buffer to lose
Out, and before using, the JSP file already has the data, then the file execution can make an error.
Property:
-page= the file URL to be forwarded by the URL or expression, or an expression that represents the URL.
The value of the-name parameter name value.
9) Label:
+
Allows dynamic files and static files to be included and dynamically executed by the JSP compiler. You cannot judge from the filename whether it is dynamic or static. You can pass parameters.
Property:
-page= "URL or expression" to include a relative path to a file, or an expression representing a relative path.
-flush= "True" here you must use Flush= "true" and you cannot use false values. The default value is False.
Can pass one or more parameters to the dynamic file, can use multiple in a page to pass multiple parameters.
10) Label:
Before you can get a property value for a bean, you must specify the ID of the new bean with the Create bean.name. Only JavaBean
Property:
-name= "Bean's name" is specified by the id attribute.
-property= the property name of the bean specified by the Bean's properties.
11) Label:
Name= "Bean's ID"
{
property= "*"
property= "PropertyName" [param= "ParameterName"]
Property= "PropertyName" value= "{string |}"
}/>
The value of name should be in the value of the ID in
Many ways to set property values:
Match the properties in the bean with all values entered by the user (as in the request object in the parameter store)
Matches the property specified in the bean with the specified value entered by the user
Use an expression at run time to match the Bean's properties
Property:
-name= "Bean name" indicates the bean variable that has been set in the ID.
-property= "Bean Property Name" value= "property name to set" If you use the property= "*", then the Bean's properties are not necessarily sorted by the order in the HTML form.
-property= "*" stores all values entered by the user in the JSP to match the properties in the bean. The name of the property in the bean must be the same as the parameter name in the Request object. The parameter values from the client to the service are typically character types, These strings must be converted to other types to be able to match in the Bean, and the following table lists the types of bean properties and their conversion methods. Convert a string to another
Method of type, property type method:
Boolean or Boolean
Java.lang.Boolean.valueOf (String)
Byte or byte
Java.lang.Byte.valueOf (String)
Char or Character
Java.lang.Character.valueOf (String)
Double or double
Java.lang.Double.valueOf (String)
Integer or integer
Java.lang.Integer.valueOf (String)
float or float
Java.lang.Float.valueOf (String)
Long or long
Java.lang.Long.valueOf (String)
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.