public class InsertTag
extends javax.servlet.jsp.tagext.TagSupport
<template:insert template='/views/template.jsp'>
Modifier and Type | Field and Description |
---|---|
static String |
TEMPL_STACK_KEY |
static String |
VIEW_PLACEHOLDER |
Constructor and Description |
---|
InsertTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
int |
doStartTag() |
Stack |
getStack() |
void |
setTemplate(String templateString)
Sets (according to attribute 'template') a path to the template
page.
|
public static final String TEMPL_STACK_KEY
public static final String VIEW_PLACEHOLDER
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public Stack getStack()
public void setTemplate(String templateString)
Note: You can use a special placeholder %view%
if
you want to insert the name of the current view of the user
session. This is a work-around, because JSP does not allow you
to use a custom tag inside another custom tag