org.bibeault.jrjournal.jsp
Class ScopedVarTagSupport
java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
org.bibeault.jrjournal.jsp.ScopedVarTagSupport
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag
- Direct Known Subclasses:
- ConstantsMapTag, SetConstantTag
- public abstract class ScopedVarTagSupport
- extends javax.servlet.jsp.tagext.SimpleTagSupport
Abstract tag support class for implementing SimpleTag custom
actions that specify var
and scope
attributes.
- Author:
- Bear Bibeault
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
doTag, findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScopedVarTagSupport
public ScopedVarTagSupport()
setVar
public void setVar(java.lang.String value)
setScope
public void setScope(java.lang.String value)
getVar
protected java.lang.String getVar()
getScopeName
protected java.lang.String getScopeName()
getScopedContext
protected ScopedContext getScopedContext()
setScopedVariable
protected void setScopedVariable(java.lang.Object value)
validateScope
public static boolean validateScope(java.lang.String scopeName,
java.util.List validationMessages)
- Validation method for the scope name; designed to be called from
TagExtraInfo extensions.
- Parameters:
scopeName
- the scope name to be testedvalidationMessages
- the message list to add error messages to
- Returns:
- true if the validation failed, false otherwise