org.apache.struts.taglib.tiles
public class PutTag extends BodyTagSupport implements ComponentConstants
Field Summary | |
---|---|
protected String | attributeName
Name of attribute to put in component context. |
String | beanName
Bean name attribute. |
String | beanProperty
Bean property attribute. |
String | beanScope
Bean scope attribute. |
protected String | body
The body content of this tag. |
String | direct
JSP Template compatibility. |
protected Object | realValue
Cached real value computed from tag attributes. |
String | role
Role attribute. |
Object | value
Associated attribute value. |
String | valueType
Requested type for the value. |
Constructor Summary | |
---|---|
PutTag()
Default constructor. |
Method Summary | |
---|---|
protected void | callParent()
Find parent tag which must implement AttributeContainer. |
protected void | computeRealValue()
Compute real value according to tag attributes. |
int | doAfterBody()
Save the body content of this tag (if any)
|
int | doEndTag()
Do end tag. |
int | doStartTag()
Do start tag. |
protected PutTagParent | findEnclosingPutTagParent()
Find parent tag which must implement AttributeContainer. |
String | getBeanName()
Get bean name. |
String | getBeanProperty()
Get bean property. |
String | getBeanScope()
Get bean scope. |
String | getContent()
Get content.
|
String | getName()
Get name. |
Object | getRealValue()
Get real value according to tag attribute.
|
protected void | getRealValueFromBean()
Extract real value from specified bean. |
String | getRole()
Get role attribute |
String | getType()
Get type. |
String | getValue()
Get value.
|
void | release()
Release all allocated resources. |
protected void | releaseInternal()
Release internal properties. |
void | setBeanName(String value)
Set bean name. |
void | setBeanProperty(String value)
Set bean property. |
void | setBeanScope(String value)
Set bean scope. |
void | setContent(String value)
Set content.
|
void | setContent(Object value)
Set content. |
void | setDirect(String isDirect)
Set direct.
|
void | setName(String value)
Set name. |
void | setObjectValue(Object value)
Set property value as an object.
|
void | setRole(String role)
Set role attribute. |
void | setType(String value)
Set type. |
void | setValue(String value)
Set value.
|
void | setValue(Object value)
Set value. |
Throws: JspException If we can't find an appropriate enclosing tag.
Throws: JspException If something goes wrong while getting value from bean.
Throws: JspException if a JSP exception has occurred
Throws: JspException If we can't find an appropriate enclosing tag.
Returns: Real value.
Throws: JspException If something goes wrong while getting value from bean.
Throws: JspException If something goes wrong while getting value from bean.
Returns: The role defined in the tag or null
.
Object
.Parameters: role The role the user must be in to store content.