org.mmbase.bridge.jsp.taglib
Class WriteTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.mmbase.bridge.jsp.taglib.ContextReferrerTag
              extended byorg.mmbase.bridge.jsp.taglib.WriteTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, ContainerReferrer, FunctionContainerReferrer, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag, Writer

public class WriteTag
extends ContextReferrerTag
implements Writer, FunctionContainerReferrer

The writetag can take a variable from the context and put it in a jsp variable, or write it to the page. This is also more or less the simplest possible implemententation of a 'Writer' tag.

Version:
$Id: WriteTag.java,v 1.42.2.2 2005/03/14 18:33:24 michiel Exp $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
static int MAX_COOKIE_AGE
           
 
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 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
WriteTag()
           
 
Method Summary
 int doAfterBody()
           
 int doEndTag()
           
 int doStartTag()
           
protected  java.lang.Object getObject()
           
 void setApplication(java.lang.String s)
           
 void setContainer(java.lang.String c)
          If it should not use parent container
 void setCookie(java.lang.String s)
           
 void setRequest(java.lang.String s)
           
 void setSession(java.lang.String s)
           
 void setValue(java.lang.String v)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
fillStandardParameters, findParentTag, findParentTag, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getId, getLocale, getObject, getPageContext, getReferid, getString, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, 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 org.mmbase.bridge.jsp.taglib.Writer
getWriterValue, haveBody, setEscape, setJspvar, setVartype, setWrite
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setParent
 

Field Detail

MAX_COOKIE_AGE

public static final int MAX_COOKIE_AGE
See Also:
Constant Field Values
Constructor Detail

WriteTag

public WriteTag()
Method Detail

setSession

public void setSession(java.lang.String s)
                throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setCookie

public void setCookie(java.lang.String s)
               throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setApplication

public void setApplication(java.lang.String s)
                    throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException
Since:
MMBase-1.7.4

setRequest

public void setRequest(java.lang.String s)
                throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException
Since:
MMBase-1.7.4

setValue

public void setValue(java.lang.String v)
              throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setContainer

public void setContainer(java.lang.String c)
                  throws javax.servlet.jsp.JspTagException
Description copied from interface: FunctionContainerReferrer
If it should not use parent container

Specified by:
setContainer in interface FunctionContainerReferrer
Throws:
javax.servlet.jsp.JspTagException

getObject

protected java.lang.Object getObject()
                              throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspTagException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Throws:
javax.servlet.jsp.JspTagException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspTagException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class ContextReferrerTag
Throws:
javax.servlet.jsp.JspTagException


MMBase build 1.7.4.20050922