public class AttributeValueFreemarkerServlet extends SharedVariableLoaderFreemarkerServlet
SharedVariableLoaderFreemarkerServlet
to use the attribute value as the template name.CUSTOM_SHARED_VARIABLE_FACTORIES_INIT_PARAM
Constructor and Description |
---|
AttributeValueFreemarkerServlet() |
Modifier and Type | Method and Description |
---|---|
protected String |
requestUrlToTemplatePath(HttpServletRequest request) |
void |
setValue(String value)
Sets the value to use as the template name.
|
addSharedVariableFactory, createConfiguration, createTemplateLoader, init
createModel, createObjectWrapper, createRequestParametersHashModel, deduceLocale, doGet, doPost, getConfiguration, getObjectWrapper, getTemplatePath, init, initializeServletContext, initializeSession, postTemplateProcess, preprocessRequest, preTemplateProcess
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
public void setValue(String value)
value
- The template name.protected String requestUrlToTemplatePath(HttpServletRequest request)
requestUrlToTemplatePath
in class freemarker.ext.servlet.FreemarkerServlet
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.