|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.SimpleTagSupport
no.sesat.search.view.taglib.AbstractVelocityTemplateTag
public abstract class AbstractVelocityTemplateTag
Base class to help with importing velocity templates.
| Constructor Summary | |
|---|---|
AbstractVelocityTemplateTag()
|
|
| Method Summary | |
|---|---|
static SearchTab.Layout |
findLayout(DataModel datamodel)
Find the layout that belongs to this model. |
protected SearchTab.Layout |
findLayout(JspContext cxt)
Find the layout from the context. |
protected void |
forwardJsp(String include)
Forward to the specified jsp. |
protected Site |
getSiteManually(PageContext cxt)
|
protected void |
importJsp(String include)
Imports the specified jsp. |
protected void |
importVelocity(String templateName,
Map<String,Object> map)
Imports the specified velocity template. |
| Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
|---|
doTag, findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractVelocityTemplateTag()
| Method Detail |
|---|
public static SearchTab.Layout findLayout(DataModel datamodel)
datamodel -
protected SearchTab.Layout findLayout(JspContext cxt)
cxt -
protected final Site getSiteManually(PageContext cxt)
protected final void importJsp(String include)
throws JspException
include - must contain ".jsp" suffix.
IOException
ServletException
JspException
protected final void forwardJsp(String include)
throws JspException
include - must contain ".jsp" suffix.
IOException
ServletException
JspException
protected final void importVelocity(String templateName,
Map<String,Object> map)
throws JspException
templateName - may or may not contain ".vm" extension.map - key-value pairs to put into the velocity's context.
JspException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||