public class RequestURLTag
extends javax.servlet.jsp.tagext.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.| Constructor and Description |
|---|
RequestURLTag()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParam(java.lang.String name,
java.lang.String value)
Adds a parameter with the given
name and value. |
int |
doEndTag() |
int |
doStartTag() |
void |
release() |
void |
removeParam(java.lang.String name)
Removes the parameter and all its values with the given
name. |
void |
removeParam(java.lang.String name,
java.lang.String value)
Removes a value from the parameter with the given
name. |
public void removeParam(java.lang.String name)
name.name - the name of the parameter.public void removeParam(java.lang.String name,
java.lang.String value)
name.name - name of the parameter.value - the value to remove.public void addParam(java.lang.String name,
java.lang.String value)
name and value.name - the name of the parameter.value - the value for the parameter.public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupportpublic int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionCopyright © 2010 - 2022 Adobe. All Rights Reserved