org.figure8.join.control.taglib
Class ContextTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.figure8.join.control.taglib.ContextTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
- AuthorizeTag, CssRowTag, GetResultTag, ResolveUserTag
public abstract class ContextTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
This is a base class for tag extensions using context and scopes
for retrieving and storing beans.
- Version:
- $Revision: 1.2 $
- Author:
- Laurent Broudoux
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
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 |
Method Summary |
protected java.lang.Object |
findBeanInScope(java.lang.String name,
java.lang.String scope)
Find a bean specified by its name from context within a specified scope. |
protected void |
storeBeanInScope(java.lang.Object bean,
java.lang.String name,
java.lang.String scope)
Store a bean into context using a specified name within a specified scope |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
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 |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
ContextTag
public ContextTag()
findBeanInScope
protected java.lang.Object findBeanInScope(java.lang.String name,
java.lang.String scope)
throws javax.servlet.jsp.JspTagException
- Find a bean specified by its name from context within a specified scope.
- Parameters:
name
- Name of the bean to retrievescope
- Scope to look for the bean
- Throws:
javax.servlet.jsp.JspTagException
- scope is not an existing scope
storeBeanInScope
protected void storeBeanInScope(java.lang.Object bean,
java.lang.String name,
java.lang.String scope)
- Store a bean into context using a specified name within a specified scope
- Parameters:
bean
- The bean to store within scopename
- Name to use for storing bean within contextscope
- The scope of context to use for registration
Copyright © 2005-2008 Join. All Rights Reserved.