org.apache.taglibs.response
Class EncodeURLTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.apache.taglibs.response.EncodeURLTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class EncodeURLTag
extends javax.servlet.jsp.tagext.BodyTagSupport

JSP Tag encodeUrl, used to encode a URL with the session id if necessary.

The encodeUrl tag gets the URL to encode from the body of the tag, and outputs it after encoding it.

JSP Tag Lib Descriptor

 <name>encodeUrl</name>
 <tagclass>org.apache.taglibs.response.EncodeURLTag</tagclass>
 <bodycontent>JSP</bodycontent>
 <info>Encode a URL with the JSESSIONID if necessary.</info>
 

Author:
Glenn Nielsen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
EncodeURLTag()
           
 
Method Summary
 int doAfterBody()
          Read the body of the encodeUrl tag to obtain the URL to encode, then encode the URL and output it back to the page.
 int doEndTag()
          Output the result of the calculation
 int doStartTag()
          Method called at start of tag, just returns EVAL_BODY_TAG
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

EncodeURLTag

public EncodeURLTag()
Method Detail

doStartTag

public final int doStartTag()
                     throws javax.servlet.jsp.JspException
Method called at start of tag, just returns EVAL_BODY_TAG

Returns:
EVAL_BODY_TAG
Throws:
javax.servlet.jsp.JspException

doAfterBody

public final int doAfterBody()
                      throws javax.servlet.jsp.JspException
Read the body of the encodeUrl tag to obtain the URL to encode, then encode the URL and output it back to the page.

Returns:
SKIP_BODY
Throws:
javax.servlet.jsp.JspException

doEndTag

public final int doEndTag()
                   throws javax.servlet.jsp.JspException
Output the result of the calculation

Returns:
EVAL_PAGE
Throws:
javax.servlet.jsp.JspException


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.