org.apache.tiles.jsp.taglib
Class ContainerTagSupport
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.tiles.jsp.taglib.TilesBodyTag
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport
org.apache.tiles.jsp.taglib.ContainerTagSupport
- All Implemented Interfaces:
- Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally
- Direct Known Subclasses:
- RenderTagSupport
public abstract class ContainerTagSupport
- extends RoleSecurityTagSupport
Base tag for the tiles tags which interact with the container.
Provides standard support for security, and provides access
to the container and attribute context.
- Since:
- Tiles 2.0
- Version:
- $Rev: 527536 $ $Date: 2007-04-11 17:44:51 +0200 (Wed, 11 Apr 2007) $
- See Also:
- Serialized Form
Method Summary |
int |
doEndTag()
|
int |
doStartTag()
By default, all ContainerTags evaluate their body. |
protected void |
endContext(PageContext context)
Ends the context when exiting the tag. |
void |
release()
Release any per-instance resources, releasing any resources or state
before this tag instance is disposed. |
protected void |
startContext(PageContext context)
Starts the context when entering the tag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
container
protected TilesContainer container
- The Tiles container that can be used inside the tag.
attributeContext
protected AttributeContext attributeContext
- The attribute context to use to store and read attribute values.
ContainerTagSupport
public ContainerTagSupport()
doStartTag
public int doStartTag()
throws JspException
- By default, all ContainerTags evaluate their body. Subclasses may choose to be more selective.
In any case, children can rely upon the container and attributeContext being initialized if they
call
super.doStartTag()
- Specified by:
doStartTag
in interface Tag
- Overrides:
doStartTag
in class BodyTagSupport
- Returns:
EVAL_BODY_BUFFERED
.
- Throws:
JspException
- If the container has not been initialized.
doEndTag
public int doEndTag()
throws JspException
-
- Specified by:
doEndTag
in interface Tag
- Overrides:
doEndTag
in class RoleSecurityTagSupport
- Throws:
JspException
release
public void release()
- Release any per-instance resources, releasing any resources or state
before this tag instance is disposed.
- Specified by:
release
in interface Tag
- Overrides:
release
in class TilesBodyTag
- See Also:
Tag.release()
startContext
protected void startContext(PageContext context)
- Starts the context when entering the tag.
- Parameters:
context
- The page context to use.
endContext
protected void endContext(PageContext context)
- Ends the context when exiting the tag.
- Parameters:
context
- The page context to use.
Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.