Class PutTag
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.PutTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.BodyTag,jakarta.servlet.jsp.tagext.IterationTag,jakarta.servlet.jsp.tagext.JspTag,jakarta.servlet.jsp.tagext.Tag,Serializable
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:
-
Field Summary
Fields inherited from class net.ontopia.topicmaps.nav.taglibs.template.AbstractTemplateTag
nameFields inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport
bodyContentFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFEREDFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintdoEndTag()intvoidDeprecated.attribute no longer neccessary to use becaue the existence of a content attribute tells the tag whether to use the body content or not.voidsetContent(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.voidSets a flag which, if set to "true", will interpret the content string directly.voidSets the name of the string.Methods inherited from class net.ontopia.topicmaps.nav.taglibs.template.AbstractTemplateTag
getParameter, putParameterMethods inherited from class jakarta.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, release, setBodyContentMethods inherited from class jakarta.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
Constructor Details
-
PutTag
public PutTag()
-
-
Method Details
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspException- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjakarta.servlet.jsp.tagext.BodyTagSupport- Throws:
jakarta.servlet.jsp.JspException
-
doAfterBody
public int doAfterBody() throws jakarta.servlet.jsp.JspException- Specified by:
doAfterBodyin interfacejakarta.servlet.jsp.tagext.IterationTag- Overrides:
doAfterBodyin classjakarta.servlet.jsp.tagext.BodyTagSupport- Throws:
jakarta.servlet.jsp.JspException
-
doEndTag
public int doEndTag()- Specified by:
doEndTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjakarta.servlet.jsp.tagext.BodyTagSupport
-
setName
Sets the name of the string. -
setContent
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
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
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.
-