类 JspToolContext
java.lang.Object
org.apache.velocity.tools.ToolContext
org.apache.velocity.tools.view.ViewToolContext
org.apache.velocity.tools.view.jsp.JspToolContext
- 所有已实现的接口:
org.apache.velocity.context.Context
,ViewContext
Velocity context implementation specific to the JSP environment.
- 版本:
- $Id: ViewContext.java 514727 2007-03-05 16:49:03Z nbubna $
- 作者:
- Nathan Bubna
-
字段概要
字段从类继承的字段 org.apache.velocity.tools.ToolContext
CATCH_EXCEPTIONS_KEY, CONTEXT_KEY, ENGINE_KEY, LOCALE_KEY, LOG_KEY, PATH_KEY
从接口继承的字段 org.apache.velocity.tools.view.ViewContext
APPLICATION, DEFAULT_TOOLBOX_KEY, REQUEST, RESPONSE, SERVLET_CONTEXT_KEY, SESSION
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getAttribute
(String key) Searches for the named attribute in request, session (if valid), and application scope(s) in order and returns the value associated or null.PageContext
protected Object
getServletApi
(String key) Returns the current matching servlet request, response, session, or servlet context instance, or null if the key matches none of those keys.protected void
从类继承的方法 org.apache.velocity.tools.view.ViewToolContext
addToolboxesUnderKey, containsKey, get, getRequest, getResponse, getServletContext, getSession, getToolboxes, getToolVar, getUserVar, getVelocityContext, getVelocityEngine, setToolboxKey
从类继承的方法 org.apache.velocity.tools.ToolContext
addToolbox, containsKey, findTool, getKeys, getToolbox, getToolClassMap, getToolProperties, getUserCanOverwriteTools, internalGet, keySet, put, putAll, putToolProperties, putToolProperty, putVelocityEngine, remove, setUserCanOverwriteTools
-
字段详细资料
-
PAGE_CONTEXT_KEY
- 另请参阅:
-
pageContext
private final PageContext pageContext
-
-
构造器详细资料
-
JspToolContext
public JspToolContext(org.apache.velocity.app.VelocityEngine velocity, PageContext pageContext)
-
-
方法详细资料
-
putToolProperties
protected void putToolProperties()- 覆盖:
putToolProperties
在类中ViewToolContext
-
getPageContext
public PageContext getPageContext() -
getServletApi
从类复制的说明:ViewToolContext
Returns the current matching servlet request, response, session, or servlet context instance, or null if the key matches none of those keys.- 覆盖:
getServletApi
在类中ViewToolContext
-
getAttribute
从类复制的说明:ViewToolContext
Searches for the named attribute in request, session (if valid), and application scope(s) in order and returns the value associated or null.
- 指定者:
getAttribute
在接口中ViewContext
- 覆盖:
getAttribute
在类中ViewToolContext
-