tiles
Tag put


Put an attribute into tile/component/template context.

Define an attribute to pass to tile/component/template. This tag can only be used inside 'insert' or 'definition' tag. Value (or content) is specified using attribute 'value' (or 'content'), or using the tag body. It is also possible to specify the type of the value :

If 'type' attribute is not specified, content is 'untyped', unless it comes from a typed bean.

Note that using 'direct="true"' is equivalent to 'type="string"'.



Tag Information
Tag Classorg.apache.struts.tiles.taglib.PutTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
name

Name of the attribute.

 
Required: false
Request-time: false
Type: java.lang.String
value

Attribute value. Could be a String or an Object. Value can come from a direct assignment (value="aValue") or from a bean. One of 'value' 'content' or 'beanName' must be present.

 
Required: false
Request-time: false
Type: java.lang.String
content

Content that's put into tile scope. Synonym to value. Attribute added for compatibility with JSP Template.

 
Required: false
Request-time: false
Type: java.lang.String
direct

Determines how content is handled: true means content is printed direct

 
Required: false
Request-time: false
Type: java.lang.String
type

Specify content type: string, page, template or definition.

  • String : Content is printed directly.
  • page | template : Content is included from specified URL. Name 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:insert attribute="attributeName"> tag, where 'attributeName' is the name used for this tag.
 
Required: false
Request-time: false
Type: java.lang.String
beanName

Name of the bean used as value. Bean is retrieved from specified context, if any. Otherwise, method pageContext.findAttribute is used. If beanProperty is specified, retrieve value from the corresponding bean property.

 
Required: false
Request-time: false
Type: java.lang.String
beanProperty

Bean property name. If specified, value is retrieve from this property. Support nested/indexed properties.

 
Required: false
Request-time: false
Type: java.lang.String
beanScope

Scope into which bean is searched. If not specified, method pageContext.findAttribute is used. Scope can be any JSP scope, 'tile', 'component', or 'template'. In these three later cases, bean is search in tile/component/template context.

 
Required: false
Request-time: false
Type: java.lang.String
role

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

 
Required: false
Request-time: false
Type: java.lang.String

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.