|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.apache.tiles.jsp.taglib.AttributeTagSupport
public abstract class AttributeTagSupport
Support for Scoped tags.
Field Summary | |
---|---|
protected Attribute |
attribute
The found attribute. |
protected AttributeContext |
attributeContext
The current attribute context. |
protected TilesContainer |
container
The Tiles container to use. |
protected boolean |
ignore
Flag that, if true , ignores exceptions. |
protected String |
name
The name of the attribute. |
protected int |
scope
The scope. |
protected String |
scopeName
The scope name. |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, 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 | |
---|---|
AttributeTagSupport()
|
Method Summary | |
---|---|
int |
doEndTag()
|
int |
doStartTag()
|
abstract void |
execute()
Execute this tag. |
boolean |
getIgnore()
Get ignore flag. |
String |
getName()
Get the name. |
String |
getScope()
Get scope. |
static int |
getScope(String scopeName)
Converts the scope name into its corresponding PageContext constant value. |
int |
getScopeId()
Get scope value from string value. |
void |
release()
|
void |
setIgnore(boolean ignore)
Set ignore flag. |
void |
setName(String name)
Set the name. |
void |
setScope(String scope)
Set the scope. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, 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 |
Field Detail |
---|
protected String scopeName
protected int scope
protected String name
protected boolean ignore
true
, ignores exceptions.
protected TilesContainer container
protected AttributeContext attributeContext
protected Attribute attribute
Constructor Detail |
---|
public AttributeTagSupport()
Method Detail |
---|
public void setScope(String scope)
scope
- Scope.public String getScope()
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public abstract void execute() throws javax.servlet.jsp.JspException, IOException
doEndTag()
.
javax.servlet.jsp.JspException
- If something goes wrong during rendering.
IOException
- If something goes wrong during writing content.public int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
public int getScopeId() throws javax.servlet.jsp.JspException
int
, or defaultValue
if scope is null
.
javax.servlet.jsp.JspException
- Scope name is not recognized as a valid scope.public static int getScope(String scopeName) throws javax.servlet.jsp.JspException
scopeName
- Can be "page", "request", "session", or "application" in any
case.
javax.servlet.jsp.JspException
- if the scopeName is not a valid name.public String getName()
public void setName(String name)
name
- The new namepublic void setIgnore(boolean ignore)
ignore
- default: false
: Exception is thrown when attribute is not found, set to
true
to ignore missing attributes silentlypublic boolean getIgnore()
false
: Exception is thrown when attribute is not found, set to
true
to ignore missing attributes silently
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |