Add an element to the surrounding list.
This tag can only be used inside putList tag.
Value can come from a direct assignment (value="aValue") or from a bean.
One of 'value' or 'beanName' must be present.
Attribute Name |
Description |
value |
Element value. Can be a String or Object.
|
content |
Element value. Can be a String or Object.
Synonym to value. Attribute added for compatibility with JSP Template.
[RT Expr]
|
direct |
Determines how content is handled: true means content is
printed directly; false, the default, means content
is included.
This is another way to specify content type. If 'direct=true' content is 'string', if
'direct=false', content is 'page'.
Attribute added for compatibility with JSP Template.
|
type |
Specify content type: string, page, template or instance.
- String : Content is printed directly.
- page | template : Content is included from specified URL. Name is used as an URL.
- definition : Value denote a definition defined in factory (xml file). Definition will be searched
in the inserted tile, in a
<insert attribute="attributeName"> tag, where 'attributeName'
is the name used for this tag.
If 'type' attribute is not specified, content is 'untyped', unless it comes from a typed bean.
|
beanName |
Name of the bean used as value. Bean is retrieved from specified context, if any. Otherwise,
method pageContext.findAttribute is used.
If beanProperty is specified, retrieve value from the corresponding bean property.
[RT Expr]
|
beanProperty |
Bean property name. If specified, value is retrieve from this property. Support nested/indexed
properties.
[RT Expr]
|
beanScope |
Scope into which bean is searched. If not specified, method pageContext.findAttribute is used.
Scope can be any JSP scope, 'component', or 'template'.
In these two later cases, bean is search in tile/component/template context.
|
role |
If the user is in the specified role, the tag is taken into account;
otherwise, the tag is ignored (skipped).
The role isn't taken into account if <add> tag is used in a definition.
[RT Expr]
|