| < Day Day Up > |
|
The <tiles:put /> tag is used to define the equivalent of a parameter, representing a sub-component of a template, that will be passed to the Tiles object. The <tiles:put /> tag has a body type of JSP and supports eight attributes, described in Table 17.3.
Attribute | Description |
---|---|
name | Specifies the name of the parameter being passed to the tag's parent. (Optional) |
value | Specifies the value of the parameter being passed to the tag's parent. (Optional) |
direct | Indicates how the parameter content is to be handled. If the value is true, then the content is written immediately; otherwise, the content is included. (Optional) |
type | Specifies the content type of the value being passed. The possible values are string, page, template, and definition. (Optional) |
beanName | Represents an alternative to value, which allows you to use the contents of a JavaBean as the parameter value. (Optional) |
beanProperty | Used in conjunction with the beanName attribute to identify a JavaBean property that will be used as the parameter value. (Optional) |
beanScope | Indicates the scope location of the JavaBean identified by the beanName attribute. If the beanScope attribute is not specified, the PageContext.findAttribute() method is used to locate the named bean. (Optional) |
role | Represents the required role for evaluating this <tiles:put /> tag. If the requesting user is not in the named role, this tag is ignored. (Optional) |
The <tiles:put /> tag must be a sub-element of either a <tiles:insert /> or a <tiles:definition /> tag.
| < Day Day Up > |
|