Page
The power of the Page tag is to obtain the property from the context of the page, package it to bean, and access the bean through a script variable.
When there is a problem in the label (such as the specified Page context attribute is not found), a request period will be thrown out.
This tag cannot contain label content.
This label has two properties.
Attributes
description
id
Set the name of the bean that stores attributes
(have to)
Property
The name of the attribute of the acquired page context must be one of the following properties: Application,
Config, Request, Response, or session.
(have to)
Parameter
Parameter is used to extract parameter values from the request. The obtained parameter value will be used to define an attribute within a page range, which is java.lang.string or java.lang.string [] (when the multiple property is not NULL).
When there is a problem in the label (such as the specified parameter is not found, and the value attribute is not set), a request period will be thrown out.
This tag cannot contain label content.
This tag has four properties.
Attributes
description
id
Set the name of the script variable used to expose the page properties.
(have to)
Name
Set the name of the properties you want to get
(have to)
Multiple
When this property is set any value, generate a string [] object containing all request parameters to match. If this property is set to NULL, only one parameter matching, the first ([0] element) element of the String [] object will contain the obtained value.
(Optional)
Value
The default value, the value will be returned when the specified NAME property does not match the parameters.
(Optional)
Resource
The Resuorce label is used to get the value of the resource of the web application, which is identified by the Name property. This tag allows resources as java.io.inputstream or java.lang.String objects, which can be set via the input property.
When there is a problem in the tag (such as the specified resource is not found), an exception is thrown.
This tag cannot contain label content.
This tag has three properties.
Attributes
Description
Id
Set the name of the script variable in the page scope, the script variable saves the value obtained from the WET application resource
(have to)
Name
Note the application related to the application to obtain the corresponding value, this property must start by / character
(have to)
INPUT
If the property is set to any value, the resulting resource will be used as a Java.Io.inputStream object, and the resource will be a java.lang.String object when setting to null. This attribute default is NULL.
(Optional)
Size
The Size tag is used to get the number of elements of the target of the collection type, where the collection type is included in the array, java.util.collection, and java.util.map. This tag encapsulates the elements of the collection type object into a java.lang.integer script variable. The set type object in this tag can set the Collection property by setting the expression of a running period, or a JSP bean set by the Name property, or the property specified by the Property property in the bean set by the Name property. .
When there is a problem in the tag (such as the data specified type type of data is not Array, Collection or Map, or the specified bean is not found), a request period will throw an exception.
This tag cannot contain label content.
This tag has five attributes.
Attributes
description
id
The script name of the JSP bean used to save the number of set elements, the type of the bean is java.lang.integer (must)
COLLECTION
Indicates the expression of the running period, the value of the expression is ultimately Array, Collection or Map.
(Optional)
Name
The name of the JSP bean that contains a collection type data that needs to be counted. If the Property property is set, the collection data will be obtained from the properties in the bean. If the Property is not set, the bean set by the Name property is counted as a collection object.
(Optional)
Property
Set a member name of the collection type used to count through the name property set by the Name property.
(Optional)
Scope
BEAN's scope, Bean set by the Name property will look for in this scope. When this property is not set, you will look up as follows: Page, Request, Session, and Application.
(Optional)
Struts
The STRUTS tag is used to copy a specified Struts internal component to a script component in a page scope. The Struts component that can be obtained includes fromBean, Forward, or a mapping object.
When there is a problem in the tag (such as the specified Struts component is not found), an exception is thrown.
This tag cannot contain label content.
This tag has four properties.
Attributes
description
id
Set the script variable name used to save the corresponding acquired Struts component.
(have to)
FORMBEAN
Specifies the name of the Struts ActionForm object to be copied.
(Optional)
Forward
Specifies the name of the global ActionForward to be copied.
(Optional)
mapping
Specifies the path to the ActionMapping object to be copied.
(RT EXPR)
Note: Forward properties and mapping properties are mutually exclusive and can only set one of them in a strutst tag.
Write
The Write tag is used to get and output the properties of the bean. If the Format property is set, the output value will be formatted in format according to the Format property.
When there is a problem in the label (such as the specified bean is not found), a request period will be thrown out.
This tag cannot contain label content.
This tag has nine attributes.
20
Attributes
description
Bundle
Set the name of the BEAN of the MessageResources object containing the message string, the BEAN's scope is Application, which corresponds to a
(Optional)
Filter
If the property is set to True, the HTML sensitive character in the output string (for example, <,>, etc.) will be filtered, and the equivalent other characters will be replaced. Set to false does not filter HTML sensitive characters. The default is true.
(Optional)
Format
Set the character style for formatting the obtained attribute value.
(Optional)
FormatKey
Set the keywords that look up the formatted string stored in the application resource.
(Optional)
Ignore
If this property is set to True, when the specified bean does not exist, only anything is returned without output anything. If set to false, when the above case occurs, an exception of a running period will be thrown, which is consistent with other tags in the label library.
The default value is false
(Optional)
Locale
The SESSION scope contains the name of the BEAN of the current Locale object, and then this property is used to generate a message related to the user area settings.
(Optional)
Name
Set the name of the bean to get the attribute and output, if the Property property is not set, the bean itself will be used to output. (Optional)
Property
Set the name of the property that needs to be output in the bean specified by the NAME property.
(Optional)
Scope
Specifies the scope of the search for the BEAN for obtaining and outputting attributes. If there is no setting, it will look for Page, Request, Session, and Application in order.
(Optional)