This project has retired. For details please refer to its Attic page.
insertAttribute (Tiles - JSP support Tag library documentation)

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 Classorg.apache.tiles.jsp.taglib.InsertAttributeTag
TagExtraInfo ClassNone
Body Contentscriptless
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
namefalsetruejava.lang.String

Name of the attribute to insert. This attribute will be ignored if the value attribute is specified.

valuefalsetruejava.lang.Object

Attribute object to render directly. If it specified, the name attribute will be ignored.

flushfalsefalseboolean

True or false. If true, current page out stream is flushed after insertion.

ignorefalsetrueboolean

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.

rolefalsetruejava.lang.String

If the user is in the specified role, the tag is taken into account; otherwise, the tag is ignored (skipped).

preparerfalsetruejava.lang.StringThe fully qualified name of the preparer.
defaultValuefalsetruejava.lang.Object

This value is evaluated only if value is null and the attribute with the associated name is null.

defaultValueTypefalsetruejava.lang.Object

The type of the defaultValue, if it is a string. To be used in conjunction with defaultValue attribute.

defaultValueRolefalsetruejava.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.


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.