|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.webwork.views.freemarker.FreemarkerManager
Static Configuration Manager for the FreemarkerResult's configuration
Field Summary | |
static String |
CONFIG_SERVLET_CONTEXT_KEY
|
static String |
KEY_ACTION
|
static String |
KEY_APPLICATION
|
static String |
KEY_EXCEPTION
|
static String |
KEY_JSP_TAGLIBS
|
static String |
KEY_OGNL
|
static String |
KEY_REQUEST
|
static String |
KEY_REQUEST_MODEL
|
static String |
KEY_RESPONSE
|
static String |
KEY_SESSION_MODEL
|
static String |
KEY_STACK
|
static String |
KEY_UTIL
|
static String |
KEY_WEBWORK
|
Constructor Summary | |
FreemarkerManager()
|
Method Summary | |
ScopesHashModel |
buildScopesHashModel(ServletContext servletContext,
HttpServletRequest request,
HttpServletResponse response,
freemarker.template.ObjectWrapper wrapper)
|
protected freemarker.template.Configuration |
createConfiguration(ServletContext servletContext)
Create the instance of the freemarker Configuration object. |
freemarker.template.Configuration |
getConfigruation(ServletContext servletContext)
|
static FreemarkerManager |
getInstance()
To allow for custom configuration of freemarker, sublcass this class "ConfigManager" and set the webwork configuration property webwork.freemarker.configmanager.classname to the fully qualified classname. |
protected freemarker.ext.beans.BeansWrapper |
getObjectWrapper()
|
protected freemarker.cache.TemplateLoader |
getTemplateLoader(ServletContext servletContext)
The default template loader is a MultiTemplateLoader which includes a ClassTemplateLoader and a WebappTemplateLoader (and a FileTemplateLoader depending on the init-parameter 'TemplatePath'). |
protected void |
loadSettings(ServletContext servletContext,
freemarker.template.Configuration configuration)
Load the settings from the /freemarker.properties file on the classpath |
void |
populateContext(ScopesHashModel model,
com.opensymphony.xwork.util.OgnlValueStack stack,
com.opensymphony.xwork.Action action,
HttpServletRequest request,
HttpServletResponse response)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String CONFIG_SERVLET_CONTEXT_KEY
public static final String KEY_REQUEST
public static final String KEY_RESPONSE
public static final String KEY_STACK
public static final String KEY_OGNL
public static final String KEY_UTIL
public static final String KEY_WEBWORK
public static final String KEY_EXCEPTION
public static final String KEY_ACTION
public static final String KEY_APPLICATION
public static final String KEY_REQUEST_MODEL
public static final String KEY_SESSION_MODEL
public static final String KEY_JSP_TAGLIBS
Constructor Detail |
public FreemarkerManager()
Method Detail |
public static final FreemarkerManager getInstance()
public final freemarker.template.Configuration getConfigruation(ServletContext servletContext) throws freemarker.template.TemplateException
freemarker.template.TemplateException
public ScopesHashModel buildScopesHashModel(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, freemarker.template.ObjectWrapper wrapper)
public void populateContext(ScopesHashModel model, com.opensymphony.xwork.util.OgnlValueStack stack, com.opensymphony.xwork.Action action, HttpServletRequest request, HttpServletResponse response)
protected freemarker.ext.beans.BeansWrapper getObjectWrapper()
protected freemarker.cache.TemplateLoader getTemplateLoader(ServletContext servletContext)
protected freemarker.template.Configuration createConfiguration(ServletContext servletContext) throws freemarker.template.TemplateException
servletContext
-
freemarker.template.TemplateException
protected void loadSettings(ServletContext servletContext, freemarker.template.Configuration configuration)
for the definition of valid settings
|
WebWork Project Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |