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

public class GetTag extends AbstractTemplateTag
INTERNAL: Gets a string for use in a JSP template (view) via a key defined in a "put" tag on the original JSP (model).

Example

 <html>
   <head>
     <title>
       <template:get name='title'/>
     </title>
   </head>
   ...
 
See Also:
  • Field Summary

    Fields inherited from class net.ontopia.topicmaps.nav.taglibs.template.AbstractTemplateTag

    name

    Fields inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport

    bodyContent

    Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport

    id, pageContext

    Fields inherited from interface jakarta.servlet.jsp.tagext.BodyTag

    EVAL_BODY_BUFFERED

    Fields inherited from interface jakarta.servlet.jsp.tagext.IterationTag

    EVAL_BODY_AGAIN

    Fields inherited from interface jakarta.servlet.jsp.tagext.Tag

    EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
     
    void
    setFallback(boolean fallback)
    Sets the flag that defines whether the tag content should be used as fallback if no corresponding PutTag was found.
    void
    Sets the name of the string to "get".

    Methods inherited from class net.ontopia.topicmaps.nav.taglibs.template.AbstractTemplateTag

    getParameter, putParameter

    Methods inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport

    doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent

    Methods inherited from class jakarta.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 jakarta.servlet.jsp.tagext.Tag

    getParent, setPageContext, setParent
  • Constructor Details

    • GetTag

      public GetTag()
  • Method Details

    • setName

      public void setName(String name)
      Sets the name of the string to "get". It must match a value set already by the PutTag.
    • setFallback

      public void setFallback(boolean fallback)
      Sets the flag that defines whether the tag content should be used as fallback if no corresponding PutTag was found.
      Since:
      5.4.0
    • doStartTag

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

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