public abstract class StripesTagSupport
extends java.lang.Object
implements javax.servlet.jsp.tagext.Tag
Modifier and Type | Field and Description |
---|---|
protected javax.servlet.jsp.PageContext |
pageContext
Storage for a PageContext during evaluation.
|
protected javax.servlet.jsp.tagext.Tag |
parentTag
Storage for the parent tag of this tag.
|
Constructor and Description |
---|
StripesTagSupport() |
Modifier and Type | Method and Description |
---|---|
abstract int |
doEndTag()
Abstract method from the Tag interface.
|
abstract int |
doStartTag()
Abstract method from the Tag interface.
|
protected java.lang.Class<? extends ActionBean> |
getActionBeanType(java.lang.Object nameOrClass)
Helper method that takes an attribute which may be either a String class name
or a Class object and returns the Class representing the appropriate ActionBean.
|
protected java.lang.String |
getActionBeanUrl(java.lang.Object nameOrClass)
Similar to the
getActionBeanType(Object) method except that instead of
returning the Class of ActionBean it returns the URL Binding of the ActionBean. |
javax.servlet.jsp.PageContext |
getPageContext()
Retrieves the pageContext handed to the tag by the container.
|
javax.servlet.jsp.tagext.Tag |
getParent()
From the Tag interface - allows fetching the parent tag on the JSP.
|
protected <T extends javax.servlet.jsp.tagext.Tag> |
getParentTag(java.lang.Class<T> tagType)
Locates the enclosing tag of the type supplied.
|
protected java.util.Stack<StripesTagSupport> |
getTagStack()
Fetches a tag stack that is stored in the request.
|
void |
popPageContextAttributes()
Attempts to restore page context attributes to their state prior to a call to
pushPageContextAttributes().
|
void |
pushPageContextAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
Pushes new values for the attributes supplied into the page context, preserving
the old values so that they can be put back into page context end of the tag's
execution (usually in doEndTag).
|
void |
release()
No-op implementation of release().
|
void |
setPageContext(javax.servlet.jsp.PageContext pageContext)
Called by the Servlet container to set the page context on the tag.
|
void |
setParent(javax.servlet.jsp.tagext.Tag tag)
From the Tag interface - allows the container to set the parent tag on the JSP.
|
protected javax.servlet.jsp.PageContext pageContext
protected javax.servlet.jsp.tagext.Tag parentTag
public void setPageContext(javax.servlet.jsp.PageContext pageContext)
setPageContext
in interface javax.servlet.jsp.tagext.Tag
public javax.servlet.jsp.PageContext getPageContext()
public void setParent(javax.servlet.jsp.tagext.Tag tag)
setParent
in interface javax.servlet.jsp.tagext.Tag
public javax.servlet.jsp.tagext.Tag getParent()
getParent
in interface javax.servlet.jsp.tagext.Tag
public abstract int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
javax.servlet.jsp.JspException
public abstract int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
public void pushPageContextAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
popPageContextAttributes()
.public void popPageContextAttributes()
protected <T extends javax.servlet.jsp.tagext.Tag> T getParentTag(java.lang.Class<T> tagType)
Locates the enclosing tag of the type supplied. If no enclosing tag of the type supplied can be found anywhere in the ancestry of this tag, null is returned.
protected java.util.Stack<StripesTagSupport> getTagStack()
protected java.lang.Class<? extends ActionBean> getActionBeanType(java.lang.Object nameOrClass)
nameOrClass
- either the String FQN of an ActionBean class, or a Class objectprotected java.lang.String getActionBeanUrl(java.lang.Object nameOrClass)
getActionBeanType(Object)
method except that instead of
returning the Class of ActionBean it returns the URL Binding of the ActionBean.nameOrClass
- either the String FQN of an ActionBean class, or a Class object? Copyright 2005-2006, Stripes Development Team.