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.EVAL_BODY_AGAINEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
RequestURLTag()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParam(String name,
String value)
Adds a parameter with the given
name and value. |
int |
doEndTag()
Default processing of the end tag returning EVAL_PAGE.
|
int |
doStartTag()
Default processing of the start tag, returning SKIP_BODY.
|
void |
release()
Release state.
|
void |
removeParam(String name)
Removes the parameter and all its values with the given
name. |
void |
removeParam(String name,
String value)
Removes a value from the parameter with the given
name. |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValuepublic void removeParam(String name)
name.name - the name of the parameter.public void removeParam(String name, String value)
name.name - name of the parameter.value - the value to remove.public void addParam(String name, String value)
name and value.name - the name of the parameter.value - the value for the parameter.public void release()
release in interface Tagrelease in class TagSupportTag.release()public int doStartTag()
throws JspException
doStartTag in interface TagdoStartTag in class TagSupportJspException - if an error occurs while processing this tagTag.doStartTag()public int doEndTag()
throws JspException
doEndTag in interface TagdoEndTag in class TagSupportJspException - if an error occurs while processing this tagTag.doEndTag()Copyright © 2010 - 2020 Adobe. All Rights Reserved