public class PutTag extends AbstractTemplateTag
<template:put name='title'>My Title</template:put>
<template:put name='title' direct="true" content='My Title'/>
<template:put name='title' content='/fragments/mytitle.txt'/>
name
Constructor and Description |
---|
PutTag() |
Modifier and Type | Method and Description |
---|---|
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.
|
getParameter, putParameter
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
public void setName(String s)
public void setContent(String s)
public void setDirect(String s)
public void setBody(String s)