public class UrlTag extends TagSupport implements NameValueTag
id, pageContextEVAL_BODY_AGAINEVAL_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, setValuepublic 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 NameValueTagpublic int doStartTag()
throws JspException
TagSupportThe default behavior returns SKIP_BODY to skip the tag's body.
doStartTag in interface TagdoStartTag in class TagSupportJspExceptionpublic int doEndTag()
throws JspException
TagSupportdoEndTag in interface TagdoEndTag in class TagSupportJspExceptionpublic static CharBuffer normalizeURL(PageContext pageContext, java.lang.String url, java.lang.String context) throws JspException
JspExceptionpublic static java.lang.String encodeURL(PageContext pageContext, CharBuffer url)