org.mmbase.bridge.jsp.taglib.pageflow
Class RedirectTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.mmbase.bridge.jsp.taglib.ContextReferrerTag
              extended by org.mmbase.bridge.jsp.taglib.CloudReferrerTag
                  extended by org.mmbase.bridge.jsp.taglib.pageflow.UrlTag
                      extended by org.mmbase.bridge.jsp.taglib.pageflow.RedirectTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally, FrameworkParamHandler, ParamHandler

public class RedirectTag
extends UrlTag

Does a redirect, using the features of UrlTag.

Since:
MMBase-1.7
Version:
$Id: RedirectTag.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.pageflow.UrlTag
absolute, block, escapeAmps, extraParameters, frameworkParameters, page, parameters, referids, url
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag
cloudId
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
contextId, EVAL_BODY, helper, id, pageContextTag, referid, writerid
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
Fields inherited from interface org.mmbase.bridge.jsp.taglib.ParamHandler
KEY, SCOPE
 
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
RedirectTag()
           
 
Method Summary
 int doEndTag()
          Method called at end of Tag used to send redirect, always skips the remainder of the JSP page.
protected  boolean encode()
           
protected  boolean escapeAmps()
           
protected  String getAbsolute()
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.pageflow.UrlTag
addFrameworkParameter, addParameter, doAfterBody, doAfterBodySetValue, doMakeRelative, doStartTag, getComponent, getExtraParameters, getPage, getPage, getParameters, getUrl, getUrl, initDoEndTag, initTag, makeRelative, setAbsolute, setBlock, setEncode, setEscapeamps, setInternal, setPage, setProcess, setReferids
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.CloudReferrerTag
fillStandardParameters, findCloudProvider, findCloudProvider, getCloudContext, getCloudVar, getLocale, getNode, getNodeOrNull, setCloud
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
appendMoreParameters, doCatch, doFinally, findLoopOrQuery, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getCurrentBlock, getDefaultLocale, getEscapedValue, getFormTag, getId, getLocaleFromContext, getObject, getObjectConditional, getPageContext, getPageContextTag, getQuery, getReferid, getString, getTaglibVersion, getThreadPageContext, getTimeZone, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, setListdelimiter, setPageContext, setReferid, setVartype, setWrite, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, 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, setParent
 

Constructor Detail

RedirectTag

public RedirectTag()
Method Detail

getAbsolute

protected final String getAbsolute()
                            throws JspTagException
Overrides:
getAbsolute in class UrlTag
Throws:
JspTagException

escapeAmps

protected final boolean escapeAmps()
                            throws JspTagException
Overrides:
escapeAmps in class UrlTag
Throws:
JspTagException

encode

protected final boolean encode()
                        throws JspTagException
Overrides:
encode in class UrlTag
Throws:
JspTagException

doEndTag

public final int doEndTag()
                   throws JspTagException
Method called at end of Tag used to send redirect, always skips the remainder of the JSP page.

Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class UrlTag
Returns:
SKIP_PAGE
Throws:
JspTagException


MMBase 2.0-SNAPSHOT - null