Class SingletonTag

java.lang.Object
jakarta.servlet.jsp.tagext.SimpleTagSupport
org.deltava.taglib.content.SingletonTag
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.SimpleTag

public class SingletonTag extends jakarta.servlet.jsp.tagext.SimpleTagSupport
A JSP tag to create a singleton collection.
Since:
5.1
Version:
5.1
Author:
Luke
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Saves the collection in the request.
    void
    Sets the value.
    void
    setVar(String varName)
    Sets the page attribute to store the result in.

    Methods inherited from class jakarta.servlet.jsp.tagext.SimpleTagSupport

    findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SingletonTag

      public SingletonTag()
  • Method Details

    • setVar

      public void setVar(String varName)
      Sets the page attribute to store the result in.
      Parameters:
      varName - the page attribute name
    • setValue

      public void setValue(Object o)
      Sets the value.
      Parameters:
      o - the value
    • doTag

      public void doTag()
      Saves the collection in the request.
      Specified by:
      doTag in interface jakarta.servlet.jsp.tagext.SimpleTag
      Overrides:
      doTag in class jakarta.servlet.jsp.tagext.SimpleTagSupport