Class GetSystemDataTag

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

public class GetSystemDataTag extends TagSupport
A JSP tag to stuff data from the SystemData singleton into the request.
Since:
1.0
Version:
7.0
Author:
Luke
See Also:
  • Constructor Details

    • GetSystemDataTag

      public GetSystemDataTag()
  • Method Details

    • setVar

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

      public void setName(String objName)
      Sets the SystemData property name.
      Parameters:
      objName - the name of the SystemData property to retrieve.
    • setMapValues

      public void setMapValues(boolean mapToList)
      If the SystemData property is a Map, save only its values to the request.
      Parameters:
      mapToList - TRUE if only values are to be set, otherwise FALSE
    • setSort

      public void setSort(boolean doSort)
      Sort the values.
      Parameters:
      doSort - TRUE if the collection values should be sorted, otherwise FALSE
    • setDefault

      public void setDefault(Object value)
      Sets the default value of the attribute, if the SystemData property is not found.
      Parameters:
      value - the default value
    • 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
      Executes the tag handler and stuffs the SystemData object into the request.
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class TagSupport
      Returns:
      TagSupport.EVAL_PAGE
      Throws:
      JspException - if an error occurs