Class ComponentURLTag

  • All Implemented Interfaces:
    Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

    public class ComponentURLTag
    extends javax.servlet.jsp.tagext.TagSupport
    A tag to print out an URL of a Silverpeas component instance.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.servlet.jsp.tagext.TagSupport

        id, pageContext
      • Fields inherited from interface javax.servlet.jsp.tagext.IterationTag

        EVAL_BODY_AGAIN
      • Fields inherited from interface javax.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • Constructor Summary

      Constructors 
      Constructor Description
      ComponentURLTag()  
    • Constructor Detail

      • ComponentURLTag

        public ComponentURLTag()
    • Method Detail

      • doStartTag

        public int doStartTag()
                       throws javax.servlet.jsp.JspException
        Specified by:
        doStartTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doStartTag in class javax.servlet.jsp.tagext.TagSupport
        Throws:
        javax.servlet.jsp.JspException
      • getComponentId

        public String getComponentId()
        Gets the identifier of the Silverpeas component instance for which the URL must be printed out.
        Returns:
        the component instance identifier.
      • setComponentId

        public void setComponentId​(String componentId)
        Sets the identifier of the Silverpeas component instance for which the URL must be printed out.
        Parameters:
        componentId - the component identifier.
      • getComponentName

        public String getComponentName()
        Gets the name of the Silverpeas component instance for which the URL must be printed out.
        Returns:
        the component name.
      • setComponentName

        public void setComponentName​(String componentName)
        Sets the name of the Silverpeas component instance for which the URL must be printed out.
        Parameters:
        componentName - the name of the component.