public class UrlTag extends TagSupport implements NameValueTag
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
UrlTag() |
Modifier and Type | Method and Description |
---|---|
void |
addParam(java.lang.String name,
java.lang.String value)
Adds a parameter.
|
int |
doEndTag()
Processed at the end of the tag.
|
int |
doStartTag()
Processed at the beginning of the tag.
|
static java.lang.String |
encodeURL(PageContext pageContext,
CharBuffer url) |
static CharBuffer |
normalizeURL(PageContext pageContext,
java.lang.String url,
java.lang.String context) |
void |
setContext(Expr context)
Sets the external context for the import.
|
void |
setScope(java.lang.String scope)
Sets the scope for the result variable for the output.
|
void |
setValue(Expr value)
Sets the URL to be imported.
|
void |
setVar(java.lang.String var)
Sets the variable for the import.
|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
public void setValue(Expr value)
public void setContext(Expr context)
public void setVar(java.lang.String var)
public void setScope(java.lang.String scope)
public void addParam(java.lang.String name, java.lang.String value)
addParam
in interface NameValueTag
public int doStartTag() throws JspException
TagSupport
The default behavior returns SKIP_BODY to skip the tag's body.
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
public int doEndTag() throws JspException
TagSupport
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException
public static CharBuffer normalizeURL(PageContext pageContext, java.lang.String url, java.lang.String context) throws JspException
JspException
public static java.lang.String encodeURL(PageContext pageContext, CharBuffer url)