net.ontopia.topicmaps.nav.taglibs.template
Class PutTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by net.ontopia.topicmaps.nav.taglibs.template.AbstractTemplateTag
              extended by net.ontopia.topicmaps.nav.taglibs.template.PutTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class PutTag
extends AbstractTemplateTag

INTERNAL: Labels a string on a JSP content (model) page which can be used by GetTag for use on a template (view) page.

Examples

  • Including the body:

    <template:put name='title'>My Title</template:put>
  • Including the value of the "content" attribute:

    <template:put name='title' direct="true" content='My Title'/>
  • Including a file:

    <template:put name='title' content='/fragments/mytitle.txt'/>
  • See Also:
    Serialized Form

    Field Summary
     
    Fields inherited from class net.ontopia.topicmaps.nav.taglibs.template.AbstractTemplateTag
    name
     
    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
    PutTag()
               
     
    Method Summary
     int doAfterBody()
               
     int doEndTag()
               
     int doStartTag()
               
     void setBody(String s)
              Deprecated. attribute no longer neccessary to use becaue the existence of a content attribute tells the tag whether to use the body content or not.
     void setContent(String s)
              Sets the content of the string which can either be a path to a file or the string itself, depending on the value of the "direct" attribute.
     void setDirect(String s)
              Sets a flag which, if set to "true", will interpret the content string directly.
     void setName(String s)
              Sets the name of the string.
     
    Methods inherited from class net.ontopia.topicmaps.nav.taglibs.template.AbstractTemplateTag
    getParameter, putParameter
     
    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

    PutTag

    public PutTag()
    Method Detail

    doStartTag

    public int doStartTag()
                   throws javax.servlet.jsp.JspException
    Specified by:
    doStartTag in interface javax.servlet.jsp.tagext.Tag
    Overrides:
    doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
    Throws:
    javax.servlet.jsp.JspException

    doAfterBody

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

    doEndTag

    public int doEndTag()
    Specified by:
    doEndTag in interface javax.servlet.jsp.tagext.Tag
    Overrides:
    doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport

    setName

    public void setName(String s)
    Sets the name of the string.


    setContent

    public void setContent(String s)
    Sets the content of the string which can either be a path to a file or the string itself, depending on the value of the "direct" attribute.


    setDirect

    public void setDirect(String s)
    Sets a flag which, if set to "true", will interpret the content string directly. If not, the tag expects a file path to be in content. Default value is false.


    setBody

    public void setBody(String s)
    Deprecated. attribute no longer neccessary to use becaue the existence of a content attribute tells the tag whether to use the body content or not.

    Sets a flag which, if set to "true", will make the tag ignore the "content" attribute and use the body content of the tag. Default value is false.



    Copyright © 2000-2012 Ontopia.