Class GetConfigurationEntryTag

  • All Implemented Interfaces:
    javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

    public class GetConfigurationEntryTag
    extends javax.servlet.jsp.tagext.SimpleTagSupport
    This tag returns a configuration entry from the configuration management. If the 'var' parameter is present, the result will be stored in the page context under that identifier, otherwise, the result will be written to the output. This tag takes 2 parameters:
    path
    The path to the configuration entry (e.g. application_settings.smtp_host)
    multiple
    When multiple is set to true, this tag returns an array of values (optional, default false).
    var
    The name of the property under which the result should be stored in the pageContext (optional)
    Example: <wmedit:render var="showobject_alias" path="system_constants.showobject_servlet_uri" />
    Author:
    bartk
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doTag()  
      Boolean getMultiple()
      Returns whether multiple values should be returned by this tag.
      String getPath()
      Returns the path pointing to the configuration entry to be returned by this tag.
      String getVar()
      Returns the identifier under which the configuration entry should be stored in the pageContext .
      void setMultiple​(Boolean multiple)
      Sets whether multiple values should be returned by this tag.
      void setPath​(String path)
      Sets the path to the configuration entry that should be returned by this tag.
      void setVar​(String var)
      Sets the identifier of the optional entry in the pageContext under which the configuration entry should be stored.
      • Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport

        findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
    • Constructor Detail

      • GetConfigurationEntryTag

        public GetConfigurationEntryTag()
    • Method Detail

      • getPath

        public String getPath()
        Returns the path pointing to the configuration entry to be returned by this tag.
        Returns:
        the path pointing to the configuration entry to be returned by this tag.
      • setPath

        public void setPath​(String path)
        Sets the path to the configuration entry that should be returned by this tag.
        Parameters:
        path -
      • getMultiple

        public Boolean getMultiple()
        Returns whether multiple values should be returned by this tag.
        Returns:
        whether multiple values should be returned by this tag
      • setMultiple

        public void setMultiple​(Boolean multiple)
        Sets whether multiple values should be returned by this tag.
        Parameters:
        multiple - multiple
      • getVar

        public String getVar()
        Returns the identifier under which the configuration entry should be stored in the pageContext .
        Returns:
        the name of the optional entry in the pageContext under which the configuration entry should be stored.
      • setVar

        public void setVar​(String var)
        Sets the identifier of the optional entry in the pageContext under which the configuration entry should be stored.
        Parameters:
        var -
      • doTag

        public void doTag()
                   throws javax.servlet.jsp.JspException
        Specified by:
        doTag in interface javax.servlet.jsp.tagext.SimpleTag
        Overrides:
        doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
        Throws:
        javax.servlet.jsp.JspException