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

tiles
Tag putAttribute


Put an attribute in enclosing attribute container tag.

Enclosing attribute container tag can be :

(or any other tag which implements the PutAttributeTagParent interface. Exception is thrown if no appropriate tag can be found.

Put tag can have following atributes :

Value can also come from tag body. Tag body is taken into account only if value is not set by one of the tag attributes. In this case Attribute type is "string", unless tag body define another type.



Tag Information
Tag Classorg.apache.tiles.jsp.taglib.PutAttributeTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
nametruetruejava.lang.String

Name of the attribute.

valuefalsetruejava.lang.Object

Attribute value. Could be a String or an Object.

typefalsefalsejava.lang.String

Specify content type: string, template or definition.

  • string : Content is printed directly.
  • template : Content is included from specified URL. Value is used as an URL.
  • definition : Value is the name of a definition defined in factory (xml file). Definition will be searched in the inserted tile, in a <tiles:insertAttribute name="attributeName"> tag, where 'attributeName' is the name used for this tag.
  • object: the value is used as it is.
rolefalsetruejava.lang.String

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

cascadefalsefalseboolean

If true, the attribute value will be cascaded to nested templates and definitions.


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.