org.mmbase.bridge.jsp.taglib
Class ImportTag

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.ImportTag
All Implemented Interfaces:
BodyTag, IterationTag, Serializable, Tag

public class ImportTag
extends ContextReferrerTag

The importtag puts things in the context. It can find them from the environment or from its body.

Version:
$Id: ImportTag.java,v 1.58 2005/05/18 08:04:16 michiel Exp $
Author:
Michiel Meeuwissen
See Also:
ContextTag, Serialized Form

Field Summary
protected  Attribute externid
           
protected  Attribute from
           
protected  Attribute required
           
 
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
ImportTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void setExternid(String e)
          The extern id it the identifier in some external source.
 void setFrom(String s)
          From which external source
 void setRequired(String b)
          If 'required' then the variable must be available in the external source, otherwise exception.
 void setReset(String b)
          If 'required' then the variable must be available in the external source, otherwise exception.
protected  void setValue(Object value)
           
protected  void setValue(Object value, boolean noImplicitList)
          Retrieves the value from the writer-helper, but escapes if necessary (using 'escape' attribute)
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
fillStandardParameters, findLoopOrQuery, findParentTag, findParentTag, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getDefaultLocale, getEscapedValue, getId, getLocale, getObject, getObjectConditional, getPageContext, getPageContextTag, getReferid, getString, getTaglibVersion, getTimeZone, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, setListdelimiter, setPageContext, setReferid, setVartype, setWrite, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, 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
 

Field Detail

required

protected Attribute required

from

protected Attribute from

externid

protected Attribute externid
Constructor Detail

ImportTag

public ImportTag()
Method Detail

setExternid

public void setExternid(String e)
                 throws JspTagException
The extern id it the identifier in some external source.

Throws:
JspTagException

setRequired

public void setRequired(String b)
                 throws JspTagException
If 'required' then the variable must be available in the external source, otherwise exception.

Throws:
JspTagException

setReset

public void setReset(String b)
              throws JspTagException
If 'required' then the variable must be available in the external source, otherwise exception.

Throws:
JspTagException

setFrom

public void setFrom(String s)
             throws JspTagException
From which external source

Throws:
JspTagException

doStartTag

public int doStartTag()
               throws JspTagException
Throws:
JspTagException

setValue

protected void setValue(Object value,
                        boolean noImplicitList)
                 throws JspTagException
Retrieves the value from the writer-helper, but escapes if necessary (using 'escape' attribute)

Throws:
JspTagException
Since:
MMBase-1.7.2

setValue

protected void setValue(Object value)
                 throws JspTagException
Throws:
JspTagException
Since:
MMBase-1.7.2

doEndTag

public int doEndTag()
             throws JspTagException
Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class ContextReferrerTag
Throws:
JspTagException


MMBase build 1.8.1.20060716