Overview | Library | Tag | Help
| FRAMES NO FRAMES

## tiles
Tag insertAttribute

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 | scriptless
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` attribute is specified.
value | false | true | `java.lang.Object` | Attribute object to render directly. If it specified, the `name` attribute will be ignored.
flush | false | false | `boolean` | True or false. If true, current page out stream is flushed after 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.
defaultValue | false | true | `java.lang.Object` | This value is evaluated only if `value` is null and the attribute with the associated `name` is null.
defaultValueType | false | true | `java.lang.Object` | The type of the `defaultValue`, if it is a string. To be used in conjunction with `defaultValue` attribute.
defaultValueRole | false | true | `java.lang.Object` | The role to check for the default value. If the user is in the specified role, the default value is taken into account; otherwise, it is ignored (skipped). To be used in conjunction with `defaultValue` attribute.

Variables
| No Variables Defined.

Overview | Library | Tag | Help
| FRAMES NO FRAMES

Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.