|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport javax.servlet.jsp.tagext.BodyTagSupport org.apache.struts.tiles.taglib.PutTag
public class 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 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. |
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface org.apache.struts.tiles.taglib.ComponentConstants |
---|
COMPONENT_CONTEXT, COMPONENT_SCOPE, EXCEPTION_KEY, LOCALE_KEY |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
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(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. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
Field Detail |
---|
protected String attributeName
protected Object realValue
protected String body
Constructor Detail |
---|
public PutTag()
Method Detail |
---|
public void release()
release
in interface Tag
release
in class 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 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
doStartTag
in interface Tag
doStartTag
in class BodyTagSupport
JspException
public int doAfterBody() throws JspException
doAfterBody
in interface IterationTag
doAfterBody
in class BodyTagSupport
JspException
- if a JSP exception has occurredpublic int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class BodyTagSupport
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 |