Class RequestURLTag

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Constructor Detail

      • RequestURLTag

        public RequestURLTag()
        Default constructor.
    • Method Detail

      • removeParam

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

        public void removeParam​(java.lang.String name,
                                java.lang.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​(java.lang.String name,
                             java.lang.String value)
        Adds a parameter with the given name and value.
        Parameters:
        name - the name of the parameter.
        value - the value for the parameter.