|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBodyTagSupport
org.apache.struts.taglib.tiles.PutTag
Put an attribute in enclosing attribute container tag. Enclosing attribute container tag can be : <insert> or <definition>. Exception is thrown if no appropriate tag can be found. Put tag can have following atributes :
Field Summary | |
protected java.lang.String |
attributeName
Name of attribute to put in component context. |
private java.lang.String |
beanName
Bean name attribute. |
private java.lang.String |
beanProperty
Bean property attribute. |
private java.lang.String |
beanScope
Bean scope attribute. |
protected java.lang.String |
body
The body content of this tag. |
private java.lang.String |
direct
JSP Template compatibility. |
protected java.lang.Object |
realValue
Cached real value computed from tag attributes. |
private java.lang.String |
role
Role attribute. |
private java.lang.Object |
value
Associated attribute value. |
private java.lang.String |
valueType
Requested type for the value. |
Fields inherited from interface org.apache.struts.taglib.tiles.ComponentConstants |
COMPONENT_CONTEXT, COMPONENT_SCOPE, EXCEPTION_KEY, LOCALE_KEY |
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. |
java.lang.String |
getBeanName()
Get bean name. |
java.lang.String |
getBeanProperty()
Get bean property. |
java.lang.String |
getBeanScope()
Get bean scope. |
java.lang.String |
getContent()
Get content. |
java.lang.String |
getName()
Get name. |
java.lang.Object |
getRealValue()
Get real value according to tag attribute. |
protected void |
getRealValueFromBean()
Extract real value from specified bean. |
java.lang.String |
getRole()
Get role attribute |
java.lang.String |
getType()
Get type. |
java.lang.String |
getValue()
Get value. |
void |
release()
Release all allocated resources. |
protected void |
releaseInternal()
Release internal properties. |
void |
setBeanName(java.lang.String value)
Set bean name. |
void |
setBeanProperty(java.lang.String value)
Set bean property. |
void |
setBeanScope(java.lang.String value)
Set bean scope. |
void |
setContent(java.lang.Object value)
Set content. |
void |
setContent(java.lang.String value)
Set content. |
void |
setDirect(java.lang.String isDirect)
Set direct. |
void |
setName(java.lang.String value)
Set name. |
void |
setObjectValue(java.lang.Object value)
Set property value as an object. |
void |
setRole(java.lang.String role)
Set role attribute. |
void |
setType(java.lang.String value)
Set type. |
void |
setValue(java.lang.Object value)
Set value. |
void |
setValue(java.lang.String value)
Set value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String attributeName
private java.lang.Object value
private java.lang.String direct
private java.lang.String valueType
private java.lang.String beanName
private java.lang.String beanProperty
private java.lang.String beanScope
private java.lang.String role
protected java.lang.Object realValue
protected java.lang.String body
Constructor Detail |
public PutTag()
Method Detail |
public void release()
protected void releaseInternal()
public void setName(java.lang.String value)
public java.lang.String getName()
public void setValue(java.lang.String value)
public java.lang.String getValue()
public void setValue(java.lang.Object value)
public void setObjectValue(java.lang.Object value)
Object
.
public void setContent(java.lang.String value)
public java.lang.String getContent()
public void setContent(java.lang.Object value)
public void setDirect(java.lang.String isDirect)
public void setType(java.lang.String value)
public java.lang.String getType()
public void setBeanName(java.lang.String value)
public java.lang.String getBeanName()
public void setBeanProperty(java.lang.String value)
public java.lang.String getBeanProperty()
public void setBeanScope(java.lang.String value)
public java.lang.String getBeanScope()
public void setRole(java.lang.String role)
role
- The role the user must be in to store content.public java.lang.String getRole()
null
.public java.lang.Object getRealValue() throws JspException
JspException
- If something goes wrong while getting value from bean.protected void computeRealValue() throws JspException
JspException
- If something goes wrong while getting value from bean.protected void getRealValueFromBean() throws JspException
JspException
- If something goes wrong while getting value from bean.public int doStartTag() throws JspException
JspException
public int doAfterBody() throws JspException
JspException
- if a JSP exception has occurredpublic int doEndTag() throws JspException
JspException
protected void callParent() throws JspException
JspException
- If we can't find an appropriate enclosing tag.protected PutTagParent findEnclosingPutTagParent() throws JspException
JspException
- If we can't find an appropriate enclosing tag.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |