InfoCenter Home >
4: Developing applications >
4.2: Building Web applications >
4.2.2: Developing JSP files >
4.2.2.3: Overview of JSP file content >
4.2.2.3.8: IBM extensions to JSP .91 syntax >
4.2.2.3.8.1: JSP .91 syntax: Tags for variable data >
4.2.2.3.8.1.1: JSP .91 syntax: <INSERT> tag syntax
4.2.2.3.8.1.1: JSP .91 syntax: <INSERT> tag syntax
<insert requestparm=pvalue requestattr=avalue bean=name
property=property_name(optional_index).subproperty_name(optional_index)
default=value_when_null>
</insert>
where:
- requestparm
The parameter to access within the request object. This attribute
is case-sensitive and cannot be used with the bean and property
attributes.
- requestattr
The attribute to access within the request object. The attribute
would have been set using the setAttribute method. This attribute is
case-sensitive and cannot be used with the bean and property
attributes.
- bean
The name of the JavaBean declared by a <BEAN> tag within the JSP
file. The value of this attribute is case-sensitive.
When the bean attribute is specified but the property attribute is not
specified, the entire bean is used in the substitution. For example, if
the bean is type String and the property is not specified, the value of the
string is substituted.
- property
The property of the bean to access for substitution. The value of
the attribute is case-sensitive and is the locale-independent name of the
property. This attribute cannot be used with the requestparm and
requestattr attributes.
- default
An optional string to display when the value of the bean property is
null. If the string contains more than one word, the string must be
enclosed within a pair of double quotes (such as "HelpDesk number").
The value of this attribute is case-sensitive. If a value is not
specified, an empty string is substituted when the value of the property is
null.
Use the alternate syntax instead if you need to embed the INSERT tag within
another HTML tag.
|
|