Class SpecialPagesTag

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

    public class SpecialPagesTag
    extends javax.servlet.jsp.tagext.SimpleTagSupport
    Implements the wm:specialPages tag. Returns the special pages for a specific label. In GX WebManager special pages can be defined for several types of labels. For example, a standard media repository page can be selected or RSS feed pages, etc.
    Example of usage:
     < wm:specialPages var="pages" label="footerPages" />
     < c:forEach items="${pages}" var="page" >
     < wm:link reference="${page}" />
     < /c:forEach >
    In the example above all footerPages (defined in the GX Webmanager configuration menu) are returned in the variable "pages". A link to each of these pages is created.
    • Constructor Detail

      • SpecialPagesTag

        public SpecialPagesTag()
    • Method Detail

      • setVar

        public void setVar​(String var)
        Specifies the JSP variable to store the result in.
        var - a JSP variable name
      • setLabel

        public void setLabel​(String label)
        Specifies the special page label as defined in GX WebManager.
        label - a special pages label.
      • doTag

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