public class PutTag extends javax.servlet.jsp.tagext.BodyTagSupport implements ComponentConstants
Modifier and Type | Field and Description |
---|---|
protected String |
attributeName
Name of attribute to put in component context.
|
protected String |
body
The body content of this tag.
|
protected 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.
|
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(Object value)
Set content.
|
void |
setContent(String 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(Object value)
Set value.
|
void |
setValue(String value)
Set value.
|
doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
protected String attributeName
protected Object realValue
protected 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(String value)
public String getName()
public void setValue(String value)
public String getValue()
public void setValue(Object value)
public void setObjectValue(Object value)
Object
.public void setContent(String value)
public String getContent()
public void setContent(Object value)
public void setDirect(String isDirect)
public void setType(String value)
public String getType()
public void setBeanName(String value)
public String getBeanName()
public void setBeanProperty(String value)
public String getBeanProperty()
public void setBeanScope(String value)
public String getBeanScope()
public void setRole(String role)
role
- The role the user must be in to store content.public String getRole()
null
.public 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–2017 Apache Software Foundation. All rights reserved.