public class PutTag extends javax.servlet.jsp.tagext.BodyTagSupport implements ComponentConstants
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
attributeName
Name of attribute to put in component context.
|
protected java.lang.String |
body
The body content of this tag.
|
protected java.lang.Object |
realValue
Cached real value computed from tag attributes.
|
COMPONENT_CONTEXT, COMPONENT_SCOPE, EXCEPTION_KEY, LOCALE_KEY
Constructor and Description |
---|
PutTag()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
protected java.lang.String attributeName
protected java.lang.Object realValue
protected java.lang.String body
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.BodyTagSupport
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 javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- If something goes wrong while getting value from bean.protected void computeRealValue() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- If something goes wrong while getting value from bean.protected void getRealValueFromBean() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- If something goes wrong while getting value from bean.public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
- if a JSP exception has occurredpublic int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
protected void callParent() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- If we can't find an appropriate enclosing tag.protected PutTagParent findEnclosingPutTagParent() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- If we can't find an appropriate enclosing tag.Copyright © 2000–2021 Apache Software Foundation. All rights reserved.