Class RequestURLTag

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.day.cq.wcm.tags.RequestURLTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class RequestURLTag extends TagSupport
RequestURLTag writes the current request URL to the current JspWriter. The body of this tag allows multiple addParam and removeParam tags to modify the current request URL before it is written.
See Also:
  • Constructor Details

    • RequestURLTag

      public RequestURLTag()
      Default constructor.
  • Method Details

    • removeParam

      public void removeParam(String name)
      Removes the parameter and all its values with the given name.
      Parameters:
      name - the name of the parameter.
    • removeParam

      public void removeParam(String name, String value)
      Removes a value from the parameter with the given name.
      Parameters:
      name - name of the parameter.
      value - the value to remove.
    • addParam

      public void addParam(String name, String value)
      Adds a parameter with the given name and value.
      Parameters:
      name - the name of the parameter.
      value - the value for the parameter.
    • release

      public void release()
      Release state.
      Specified by:
      release in interface Tag
      Overrides:
      release in class TagSupport
      See Also:
    • doStartTag

      public int doStartTag() throws JspException
      Default processing of the start tag, returning SKIP_BODY.
      Specified by:
      doStartTag in interface Tag
      Overrides:
      doStartTag in class TagSupport
      Returns:
      SKIP_BODY
      Throws:
      JspException - if an error occurs while processing this tag
      See Also:
    • doEndTag

      public int doEndTag() throws JspException
      Default processing of the end tag returning EVAL_PAGE.
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class TagSupport
      Returns:
      EVAL_PAGE
      Throws:
      JspException - if an error occurs while processing this tag
      See Also: