public abstract class ImportSupport extends javax.servlet.jsp.tagext.BodyTagSupport implements javax.servlet.jsp.tagext.TryCatchFinally, ParamParent
Support for tag handlers for <import>, the general-purpose text-importing mechanism for JSTL 1.0. The rtexprvalue and expression- evaluating libraries each have handlers that extend this class.
Modifier and Type | Field and Description |
---|---|
protected String |
charEncoding |
protected String |
context |
static String |
DEFAULT_ENCODING
Default character encoding for response.
|
protected String |
url |
static String |
VALID_SCHEME_CHARS
Valid characters in a scheme.
|
Constructor and Description |
---|
ImportSupport() |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(String name,
String value)
Adds a parameter to this tag's URL.
|
void |
doCatch(Throwable t) |
int |
doEndTag() |
void |
doFinally() |
int |
doStartTag() |
static boolean |
isAbsoluteUrl(String url)
Returns true if our current URL is absolute,
false otherwise.
|
void |
release() |
void |
setScope(String scope) |
void |
setVar(String var) |
void |
setVarReader(String varReader) |
static String |
stripSession(String url)
Strips a servlet session ID from url.
|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public static final String VALID_SCHEME_CHARS
Valid characters in a scheme.
RFC 1738 says the following:
Scheme names consist of a sequence of characters. The lower case letters "a"--"z", digits, and the characters plus ("+"), period ("."), and hyphen ("-") are allowed. For resiliency, programs interpreting URLs should treat upper case letters as equivalent to lower case in scheme names (e.g., allow "HTTP" as well as "http").
We treat as absolute any URL that begins with such a scheme name, followed by a colon.
public static final String DEFAULT_ENCODING
protected String url
protected String context
protected String charEncoding
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
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.BodyTagSupport
javax.servlet.jsp.JspException
public void doCatch(Throwable t) throws Throwable
doCatch
in interface javax.servlet.jsp.tagext.TryCatchFinally
Throwable
public void doFinally()
doFinally
in interface javax.servlet.jsp.tagext.TryCatchFinally
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.BodyTagSupport
public void setVar(String var)
public void setVarReader(String varReader)
public void setScope(String scope)
public void addParameter(String name, String value)
ParamParent
addParameter
in interface ParamParent
ParamSupport
public static boolean isAbsoluteUrl(String url)
Copyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.