|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectorg.apache.struts2.views.velocity.VelocityManager
public class VelocityManager
Manages the environment for Velocity result types
字段摘要 | |
---|---|
static String |
KEY_VELOCITY_STRUTS_CONTEXT
|
static String |
PARENT
the parent JSP tag |
static String |
STRUTS
|
static String |
TAG
the current JSP tag |
构造方法摘要 | |
---|---|
VelocityManager()
|
方法摘要 | |
---|---|
org.apache.velocity.context.Context |
createContext(com.opensymphony.xwork2.util.ValueStack stack,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
This method is responsible for creating the standard VelocityContext used by all WW2 velocity views. |
org.apache.velocity.tools.view.ToolboxManager |
getToolboxManager()
|
org.apache.velocity.app.VelocityEngine |
getVelocityEngine()
|
Properties |
getVelocityProperties()
|
void |
init(javax.servlet.ServletContext context)
initializes the VelocityManager. |
Properties |
loadConfiguration(javax.servlet.ServletContext context)
load optional velocity properties using the following loading strategy relative to the servlet context path relative to the WEB-INF directory on the classpath |
void |
setChainedContexts(String contexts)
allow users to specify via the struts.properties file a set of additional VelocityContexts to chain to the the StrutsVelocityContext. |
void |
setContainer(com.opensymphony.xwork2.inject.Container container)
|
void |
setCustomConfigFile(String val)
|
void |
setObjectFactory(com.opensymphony.xwork2.ObjectFactory fac)
|
void |
setToolBoxLocation(String toolboxLocation)
|
void |
setVelocityProperties(Properties velocityProperties)
|
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
public static final String STRUTS
public static final String KEY_VELOCITY_STRUTS_CONTEXT
public static final String PARENT
public static final String TAG
构造方法详细信息 |
---|
public VelocityManager()
方法详细信息 |
---|
public void setObjectFactory(com.opensymphony.xwork2.ObjectFactory fac)
public void setContainer(com.opensymphony.xwork2.inject.Container container)
public org.apache.velocity.app.VelocityEngine getVelocityEngine()
public org.apache.velocity.context.Context createContext(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
ValueStack
OgnlTool
StrutsUtil
public void init(javax.servlet.ServletContext context)
context
- the current servlet contextpublic Properties loadConfiguration(javax.servlet.ServletContext context)
context
- the current ServletContext. may not be null
public void setCustomConfigFile(String val)
public void setToolBoxLocation(String toolboxLocation)
public org.apache.velocity.tools.view.ToolboxManager getToolboxManager()
public void setChainedContexts(String contexts)
public Properties getVelocityProperties()
public void setVelocityProperties(Properties velocityProperties)
velocityProperties
- the velocityProperties to set
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |