Class JSTag

All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag
Direct Known Subclasses:
GoogleMapEntryTag, JSArrayTag, JSDateTag, JSMapTag

public abstract class JSTag extends TagSupport
An abstract class to support JSP tags that render JavaScript data.
Since:
2.4
Version:
10.2
Author:
Luke
See Also:
  • Field Details

    • _jsVarName

      protected String _jsVarName
      The name of the Javascript variable to create.
  • Constructor Details

    • JSTag

      public JSTag()
  • Method Details

    • setVar

      public final void setVar(String varName)
      Sets the JavaScript variable to create.
      Parameters:
      varName - the variable name
    • setConst

      public final void setConst(boolean isConst)
      Marks the JavaScript variable as a constnt.
      Parameters:
      isConst - TRUE if a constant, otherwise FALSE
    • release

      public void release()
      Specified by:
      release in interface Tag
      Overrides:
      release in class TagSupport
    • writeVariableName

      protected void writeVariableName() throws IOException
      Writes the variable name to the JSP output stream
      Throws:
      IOException