|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport
org.apache.tiles.jsp.taglib.AddAttributeTag
public class AddAttributeTag
Adds an attribute in enclosing attribute container tag.
Enclosing attribute container tag can be :
AddAttributeTagParent
interface.
Exception is thrown if no appropriate tag can be found.
Put tag can have following atributes :
Value can also come from tag body. Tag body is taken into account only if value is not set by one of the tag attributes. In this case Attribute type is "string", unless tag body define another type.
Field Summary |
---|
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 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 | |
---|---|
AddAttributeTag()
|
Method Summary | |
---|---|
int |
doAfterBody()
Save the body content of this tag (if any). |
protected void |
execute()
Executes the tag. |
java.lang.String |
getType()
Returns content type: string, template or definition. |
java.lang.Object |
getValue()
Returns the attribute value. |
void |
release()
Release all allocated resources. |
void |
setType(java.lang.String type)
Sets content type: string, template or definition. |
void |
setValue(java.lang.Object value)
Sets the attribute value. |
Methods inherited from class org.apache.tiles.jsp.taglib.RoleSecurityTagSupport |
---|
doEndTag, getRole, isAccessAllowed, setRole |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doInitBody, doStartTag, 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 |
Constructor Detail |
---|
public AddAttributeTag()
Method Detail |
---|
public java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
- Attribute value. Can be a String or Object.public java.lang.String getType()
Returns content type: string, template or definition.
<insert attribute="attributeName">
tag, where
'attributeName' is the name used for this tag.
public void setType(java.lang.String type)
Sets content type: string, template or definition.
<insert attribute="attributeName">
tag, where
'attributeName' is the name used for this tag.
type
- The attribute type.public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class RoleSecurityTagSupport
public int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
SKIP_BODY
.
javax.servlet.jsp.JspException
- if a JSP exception has occurredprotected void execute() throws javax.servlet.jsp.JspException
RoleSecurityTagSupport.doEndTag()
.
execute
in class RoleSecurityTagSupport
javax.servlet.jsp.JspException
- If something goes wrong during rendering.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |