com.caucho.jstl.el
Class UrlTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.caucho.jstl.el.UrlTag
All Implemented Interfaces:
NameValueTag, java.io.Serializable, IterationTag, JspTag, Tag

public class UrlTag
extends TagSupport
implements NameValueTag

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
UrlTag()
           
 
Method Summary
 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.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlTag

public UrlTag()
Method Detail

setValue

public void setValue(Expr value)
Sets the URL to be imported.


setContext

public void setContext(Expr context)
Sets the external context for the import.


setVar

public void setVar(java.lang.String var)
Sets the variable for the import.


setScope

public void setScope(java.lang.String scope)
Sets the scope for the result variable for the output.


addParam

public void addParam(java.lang.String name,
                     java.lang.String value)
Adds a parameter.

Specified by:
addParam in interface NameValueTag

doStartTag

public int doStartTag()
               throws JspException
Description copied from class: TagSupport
Processed at the beginning of the tag.

The default behavior returns SKIP_BODY to skip the tag's body.

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class TagSupport
Returns:
SKIP_BODY to ignore the body and EVAL_BODY_INCLUDE to evaluate the body.
Throws:
JspException

doEndTag

public int doEndTag()
             throws JspException
Description copied from class: TagSupport
Processed at the end of the tag. The default behavior continues with the rest of the JSP.

Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class TagSupport
Returns:
EVAL_PAGE to continue the page SKIP_PAGE to stop.
Throws:
JspException

normalizeURL

public static CharBuffer normalizeURL(PageContext pageContext,
                                      java.lang.String url,
                                      java.lang.String context)
                               throws JspException
Throws:
JspException

encodeURL

public static java.lang.String encodeURL(PageContext pageContext,
                                         CharBuffer url)