|
||||||||||
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.tiles.jsp.taglib.TilesTag 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 Object |
attributeValue
The attribute value. |
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. |
protected void |
reset()
Release any per-invocation resources, resetting any resources or state that should be cleared between successive invocations of Tag.doEndTag() and
Tag.doStartTag() . |
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 org.apache.tiles.jsp.taglib.TilesTag |
---|
doCatch, doFinally, release |
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
protected Object attributeValue
Constructor Detail |
---|
public AttributeTagSupport()
Method Detail |
---|
public void setScope(String scope)
scope
- Scope.public String getScope()
protected void reset()
Tag.doEndTag()
and
Tag.doStartTag()
.
reset
in class TilesTag
public int doStartTag() throws TilesJspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
TilesJspException
public abstract void execute() throws TilesJspException, IOException
doEndTag()
.
TilesJspException
- If something goes wrong during rendering.
IOException
- If something goes wrong during writing content.public int doEndTag()
doEndTag
in interface Tag
doEndTag
in class TagSupport
public int getScopeId() throws TilesJspException
int
, or defaultValue
if scope is null
.
TilesJspException
- Scope name is not recognized as a valid scope.public static int getScope(String scopeName) throws TilesJspException
scopeName
- Can be "page", "request", "session", or "application" in any
case.
TilesJspException
- 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 |