org.apache.taglibs.response
Class EncodeRedirectURLTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--org.apache.taglibs.response.EncodeRedirectURLTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

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

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

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

JSP Tag Lib Descriptor

 <name>encodeRedirectUrl</name>
 <tagclass>org.apache.taglibs.response.EncodeRedirectURLTag</tagclass>
 <bodycontent>JSP</bodycontent>
 <info>Encode a URL with the JSESSIONID for use with sendredirect.</info>
 

Author:
Glenn Nielsen
See Also:
Serialized Form

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_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
EncodeRedirectURLTag()
           
 
Method Summary
 int doAfterBody()
          Read the body of the encodeRedirectUrl tag to obtain the URL to encode, then encode the URL and output it back to the page.
 int doEndTag()
          Output the URL encoded for redirect
 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

EncodeRedirectURLTag

public EncodeRedirectURLTag()
Method Detail

doStartTag

public final int doStartTag()
                     throws javax.servlet.jsp.JspException
Method called at start of tag, just returns EVAL_BODY_TAG
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
EVAL_BODY_TAG

doAfterBody

public final int doAfterBody()
                      throws javax.servlet.jsp.JspException
Read the body of the encodeRedirectUrl tag to obtain the URL to encode, then encode the URL and output it back to the page.
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
SKIP_BODY

doEndTag

public final int doEndTag()
                   throws javax.servlet.jsp.JspException
Output the URL encoded for redirect
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
EVAL_PAGE


Copyright ? 2000 Apache Software Foundation. All Rights Reserved.