|
|||||||||
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.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 java.lang.Object |
attributeValue
The attribute value. |
protected TilesContainer |
container
The Tiles container to use. |
protected boolean |
ignore
Flag that, if true , ignores exceptions. |
protected java.lang.String |
name
The name of the attribute. |
protected int |
scope
The scope. |
protected java.lang.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. |
java.lang.String |
getName()
Get the name. |
java.lang.String |
getScope()
Get scope. |
static int |
getScope(java.lang.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(java.lang.String name)
Set the name. |
void |
setScope(java.lang.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 java.lang.String scopeName
protected int scope
protected java.lang.String name
protected boolean ignore
true
, ignores exceptions.
protected TilesContainer container
protected AttributeContext attributeContext
protected Attribute attribute
protected java.lang.Object attributeValue
Constructor Detail |
---|
public AttributeTagSupport()
Method Detail |
---|
public void setScope(java.lang.String scope)
scope
- Scope.public java.lang.String getScope()
protected void reset()
Tag.doEndTag()
and
Tag.doStartTag()
.
reset
in class TilesTag
public int doStartTag() throws TilesJspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
TilesJspException
public abstract void execute() throws TilesJspException, java.io.IOException
doEndTag()
.
TilesJspException
- If something goes wrong during rendering.
java.io.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 TilesJspException
int
, or defaultValue
if scope is null
.
TilesJspException
- Scope name is not recognized as a valid scope.public static int getScope(java.lang.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 java.lang.String getName()
public void setName(java.lang.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 |