org.apache.tiles.jsp.taglib
Class InsertTemplateTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.tiles.jsp.taglib.RenderTagSupport
org.apache.tiles.jsp.taglib.InsertTemplateTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, PutAttributeTagParent, PutListAttributeTagParent
- Direct Known Subclasses:
- InsertDefinitionTag
public class InsertTemplateTag
- extends RenderTagSupport
This is the tag handler for <tiles:insertTemplate>, which includes a
template ready to be filled.
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
template
A string representing the URI of a template (for example, a JSP page). |
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 |
Method Summary |
java.lang.String |
getTemplate()
Returns a string representing the URI of a template (for example, a JSP
page). |
protected void |
render()
Render the specified content. |
protected void |
renderContext()
Renders the current context. |
void |
setTemplate(java.lang.String template)
Sets a string representing the URI of a template (for example, a JSP
page). |
Methods inherited from class org.apache.tiles.jsp.taglib.RenderTagSupport |
doEndTag, doStartTag, endContext, execute, getPreparer, getRole, isAccessAllowed, isFlush, isIgnore, processNestedTag, processNestedTag, release, setFlush, setIgnore, setPreparer, setRole, startContext |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, 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 |
template
protected java.lang.String template
- A string representing the URI of a template (for example, a JSP page).
- Since:
- 2.1.0
InsertTemplateTag
public InsertTemplateTag()
getTemplate
public java.lang.String getTemplate()
- Returns a string representing the URI of a template (for example, a JSP
page).
- Returns:
- The template URI.
- Since:
- 2.1.0
setTemplate
public void setTemplate(java.lang.String template)
- Sets a string representing the URI of a template (for example, a JSP
page).
- Parameters:
template
- The template URI.- Since:
- 2.1.0
render
protected void render()
throws java.io.IOException
- Render the specified content.
- Specified by:
render
in class RenderTagSupport
- Throws:
java.io.IOException
- if an io exception occurs.
renderContext
protected void renderContext()
throws java.io.IOException
- Renders the current context.
- Throws:
java.io.IOException
- if an io exception occurs.