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 :

      
      
      


Tag Information
Tag Classorg.apache.tiles.jsp.taglib.InsertAttributeTag
TagExtraInfo ClassNone
Body Contentscriptless
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
ignorefalsetrueboolean If true, if an exception happens during rendering, of if the attribute is null, the problem will be ignored.
preparerfalsetruejava.lang.String The preparer to invoke before rendering the attribute.
rolefalsetruejava.lang.String A comma-separated list of roles. If present, the attribute will be rendered only if the current user belongs to one of the roles.
defaultValuefalsetruejava.lang.Object The default value of the attribute. To use only if the attribute was not computed.
defaultValueRolefalsetruejava.lang.String The default comma-separated list of roles. To use only if the attribute was not computed.
defaultValueTypefalsetruejava.lang.String The default type of the attribute. To use only if the attribute was not computed.
namefalsetruejava.lang.String The name of the attribute.
valuefalsetrueorg.apache.tiles.Attribute The attribute to use immediately, if not null.
flushfalsetrueboolean If true, the response will be flushed after the insert.

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.