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.EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
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 . |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
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.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
Copyright © 2010 - 2020 Adobe. All Rights Reserved