|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport org.apache.struts.tiles.taglib.DefinitionTagSupport org.apache.struts.tiles.taglib.DefinitionTag
public class DefinitionTag
This is the tag handler for <tiles:definition>, which defines a tiles (or template / component). Definition is put in requested context and can be used in <tiles:insert>.
Field Summary |
---|
Fields inherited from class org.apache.struts.tiles.taglib.DefinitionTagSupport |
---|
controllerName, controllerType, page, role |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
pageContext |
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 | |
---|---|
DefinitionTag()
|
Method Summary | |
---|---|
int |
doEndTag()
Process the end tag by putting the definition in appropriate context. |
int |
doStartTag()
Process the start tag by creating a new definition. |
String |
getExtends()
Get extends (parent) definition name. |
String |
getId()
Get the ID. |
String |
getScope()
Get the scope. |
void |
processNestedTag(PutListTag nestedTag)
Process nested ≶putList> tag. |
void |
processNestedTag(PutTag nestedTag)
Process nested ≶put> tag. |
void |
putAttribute(String name,
Object content)
This method is a convenience for other tags for putting content into the tile definition. |
void |
release()
Reset member values for reuse. |
protected void |
releaseInternal()
Release internal references. |
void |
setExtends(String definitionName)
Set extends (parent) definition name. |
void |
setId(String id)
Set the ID. |
void |
setScope(String aScope)
Set the scope. |
Methods inherited from class org.apache.struts.tiles.taglib.DefinitionTagSupport |
---|
getControllerName, getControllerType, getPage, getRole, getTemplate, setController, setControllerClass, setControllerName, setControllerType, setControllerUrl, setPage, setRole, setTemplate |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefinitionTag()
Method Detail |
---|
public void release()
release
in interface Tag
release
in class DefinitionTagSupport
protected void releaseInternal()
public void putAttribute(String name, Object content)
public void processNestedTag(PutTag nestedTag) throws JspException
processNestedTag
in interface PutTagParent
nestedTag
- Nested tag to process.
JspException
public void processNestedTag(PutListTag nestedTag) throws JspException
processNestedTag
in interface PutListTagParent
nestedTag
- Nested PutTag defining the attribute.
JspException
public String getId()
getId
in class TagSupport
public void setId(String id)
setId
in class TagSupport
id
- New ID.public String getScope()
public void setScope(String aScope)
aScope
- Scope.public void setExtends(String definitionName)
extends
(parent) definition name.
definitionName
- Name of parent definition.public String getExtends()
extends
(parent) definition name.
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
- On errors processing tag.public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException
- On errors processing tag.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |