Class EnumTag

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.content.EnumTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class EnumTag extends TagSupport
A JSP tag to insert an Enumeration's values into a page attribute.
Since:
3.2
Version:
6.3
Author:
Luke
See Also:
  • Constructor Details

    • EnumTag

      public EnumTag()
  • Method Details

    • setVar

      public void setVar(String vName)
      Sets the page attribute name.
      Parameters:
      vName - the name of the attribute to store the data in
    • setClassName

      public void setClassName(String cName)
      Sets the Enumeration class name.
      Parameters:
      cName - the class name
    • setItem

      public void setItem(String iName)
      Sets the enumeration item name.
      Parameters:
      iName - the item name or null if all values requested
    • setExclude

      public void setExclude(String names)
      Sets the name of the enumeration entries to exclude.
      Parameters:
      names - a comma-seprated list of enumeration names
    • release

      public void release()
      Releases the tag's state variables.
      Specified by:
      release in interface Tag
      Overrides:
      release in class TagSupport
    • doEndTag

      public int doEndTag() throws JspException
      Loads the Enumeration and stores its values in a page attribute.
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class TagSupport
      Returns:
      EVAL_PAGE always
      Throws:
      JspException - if an error occurs or the className cannot be loaded