|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.webwork.views.velocity.VelocityManager
Field Summary | |
static String |
ACTION
|
static String |
OGNL
|
static String |
PARENT
the parent JSP tag |
static String |
REQUEST
|
static String |
RESPONSE
|
static String |
STACK
|
static String |
TAG
the current JSP tag |
static String |
WEBWORK
|
Constructor Summary | |
protected |
VelocityManager()
|
Method Summary | |
org.apache.velocity.context.Context |
createContext(com.opensymphony.xwork.util.OgnlValueStack stack,
HttpServletRequest servletRequest,
HttpServletResponse servletResponse)
This method is responsible for creating the standard VelocityContext used by all WW2 velocity views. |
static VelocityManager |
getInstance()
retrieve an instance to the current VelocityManager |
org.apache.velocity.app.VelocityEngine |
getVelocityEngine()
|
protected void |
init()
performs one-time initializations |
void |
init(ServletContext context)
initializes the VelocityManager. |
Properties |
loadConfiguration(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 |
protected org.apache.velocity.app.VelocityEngine |
newVelocityEngine(ServletContext context)
Instantiates a new VelocityEngine. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String REQUEST
public static final String RESPONSE
public static final String STACK
public static final String OGNL
public static final String WEBWORK
public static final String ACTION
public static final String PARENT
public static final String TAG
Constructor Detail |
protected VelocityManager()
Method Detail |
public static VelocityManager getInstance()
public org.apache.velocity.app.VelocityEngine getVelocityEngine()
public org.apache.velocity.context.Context createContext(com.opensymphony.xwork.util.OgnlValueStack stack, HttpServletRequest servletRequest, HttpServletResponse servletResponse)
OgnlValueStack
OgnlTool
WebWorkUtil
public void init(ServletContext context)
context
- the current servlet contextpublic Properties loadConfiguration(ServletContext context)
context
- the current ServletContext. may not be null
protected void init()
protected org.apache.velocity.app.VelocityEngine newVelocityEngine(ServletContext context)
resource.loader = file, class file.resource.loader.path = real path of webapp class.resource.loader.description = Velocity Classpath Resource Loader class.resource.loader.class = com.opensymphony.webwork.views.velocity.WebWorkResourceLoaderthis default configuration can be overridden by specifying a webwork.velocity.configfile property in the webwork.properties file. the specified config file will be searched for in the following order:
context
- the current ServletContext. may not be null
|
WebWork Project Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |