org.bibeault.jrjournal.jsp
Class ScopedVarTagSupport

java.lang.Object
  extended byjavax.servlet.jsp.tagext.SimpleTagSupport
      extended byorg.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

Constructor Summary
ScopedVarTagSupport()
           
 
Method Summary
protected  ScopedContext getScopedContext()
           
protected  java.lang.String getScopeName()
           
protected  java.lang.String getVar()
           
 void setScope(java.lang.String value)
           
protected  void setScopedVariable(java.lang.Object value)
           
 void setVar(java.lang.String value)
           
static boolean validateScope(java.lang.String scopeName, java.util.List validationMessages)
          Validation method for the scope name; designed to be called from TagExtraInfo extensions.
 
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
 

Constructor Detail

ScopedVarTagSupport

public ScopedVarTagSupport()
Method Detail

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 tested
validationMessages - the message list to add error messages to
Returns:
true if the validation failed, false otherwise