public class JspToolContext extends ViewToolContext
Velocity context implementation specific to the JSP environment.
Modifier and Type | Field and Description |
---|---|
static String |
PAGE_CONTEXT_KEY |
CATCH_EXCEPTIONS_KEY, CONTEXT_KEY, ENGINE_KEY, LOCALE_KEY, LOG_KEY, PATH_KEY, TOOLKEY_KEY
APPLICATION, DEFAULT_TOOLBOX_KEY, REQUEST, RESPONSE, SERVLET_CONTEXT_KEY, SESSION
Constructor and Description |
---|
JspToolContext(org.apache.velocity.app.VelocityEngine velocity,
javax.servlet.jsp.PageContext pageContext) |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String key) |
javax.servlet.jsp.PageContext |
getPageContext() |
protected Object |
getServletApi(String key) |
protected void |
putToolProperties() |
addToolboxesUnderKey, containsKey, get, getRequest, getResponse, getServletContext, getSession, getToolboxes, getToolVar, getUserVar, getVelocityContext, getVelocityEngine, setToolboxKey
public static final String PAGE_CONTEXT_KEY
public JspToolContext(org.apache.velocity.app.VelocityEngine velocity, javax.servlet.jsp.PageContext pageContext)
protected void putToolProperties()
putToolProperties
in class ViewToolContext
public javax.servlet.jsp.PageContext getPageContext()
protected Object getServletApi(String key)
getServletApi
in class ViewToolContext
public Object getAttribute(String key)
getAttribute
in interface ViewContext
getAttribute
in class ViewToolContext
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.