| |||||||
FRAMES NO FRAMES |
Inserts the value of an attribute into the page.
This tag can be flexibly used to insert the value of an attribute into a page. As in other usages in Tiles, every attribute can be determined to have a "type", either set explicitly when it was defined, or "computed". If the type is not explicit, then if the attribute value is a valid definition, it will be inserted as such. Otherwise, if it begins with a "/" character, it will be treated as a "template". Finally, if it has not otherwise been assigned a type, it will be treated as a String and included without any special handling.
Example :
<tiles:insertAttribute name="body" />
Tag Information | |
Tag Class | org.apache.tiles.jsp.taglib.InsertAttributeTag |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | None |
Attributes | ||||
Name | Required | Request-time | Type | Description |
name | false | true | java.lang.String | Name of the attribute to insert. This attribute will be ignored if the |
value | false | true | java.lang.Object | Attribute object to render directly. If it specified, the |
flush | false | false | boolean | True or false. If true, current page out stream is flushed before insertion. |
ignore | false | true | boolean | If this attribute is set to true, and the attribute specified by the name does not exist, simply return without writing anything. The default value is false, which will cause a runtime exception to be thrown. |
role | false | true | java.lang.String | If the user is in the specified role, the tag is taken into account; otherwise, the tag is ignored (skipped). |
preparer | false | true | java.lang.String | The fully qualified name of the preparer. |
Variables | No Variables Defined. |
| |||||||
FRAMES NO FRAMES |