Class PageMetaDataTag

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

    public class PageMetaDataTag
    extends javax.servlet.jsp.tagext.SimpleTagSupport
    Implements the wm:pageMetaData tag. Gets a pagemetadata object of the requested type for the current pageversion.
    Example of usage:
     < wm:pageMetaData var="keywords" type="keywords" />
     < meta name="keywords" value="${keywords}" />
     
    Author:
    bartk
    • Constructor Summary

      Constructors 
      Constructor Description
      PageMetaDataTag()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doTag()  
      String getType()
      Return the type of metadata; valid values are "keywords", "description", but new values can also be defined in GX WebManager.
      String getVar()
      Return the JSP variable to store the result in.
      void setType​(String type)
      Sets the type of metadata, valid values are "keywords", "description", but new values can also be defined in GX WebManager.
      void setVar​(String var)
      Specifies the JSP variable to store the result in.
      • Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport

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

      • PageMetaDataTag

        public PageMetaDataTag()
    • Method Detail

      • doTag

        public void doTag()
        Specified by:
        doTag in interface javax.servlet.jsp.tagext.SimpleTag
        Overrides:
        doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
      • getType

        public String getType()
        Return the type of metadata; valid values are "keywords", "description", but new values can also be defined in GX WebManager.
        Returns:
        the type of metadata
      • setType

        public void setType​(String type)
        Sets the type of metadata, valid values are "keywords", "description", but new values can also be defined in GX WebManager.
        Parameters:
        type - the fully qualified classname describing the interface requested
      • getVar

        public String getVar()
        Return the JSP variable to store the result in.
        Returns:
        name of the variable to store the result in
      • setVar

        public void setVar​(String var)
        Specifies the JSP variable to store the result in.
        Parameters:
        var - the name of the variable in which to store the result