|
|||||||||
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 org.apache.tiles.Attribute |
attribute
The found attribute. |
protected org.apache.tiles.AttributeContext |
attributeContext
The current attribute context. |
protected org.apache.tiles.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. |
void |
release()
|
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 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 org.apache.tiles.TilesContainer container
protected org.apache.tiles.AttributeContext attributeContext
protected org.apache.tiles.Attribute attribute
Constructor Detail |
---|
public AttributeTagSupport()
Method Detail |
---|
public void setScope(java.lang.String scope)
scope
- Scope.public java.lang.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, java.io.IOException
doEndTag()
.
javax.servlet.jsp.JspException
- 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 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(java.lang.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 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 |