public class VelocityServlet
extends org.apache.velocity.tools.view.servlet.VelocityViewServlet
Responds with the expansion of a Velocity Template. The template and context references are specified in the request.
| Constructor and Description |
|---|
VelocityServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
escapeVmName(String name)
Change any characters that Velocity doesn't like in the name to '_' to make a valid Velocity name
|
org.apache.velocity.Template |
handleRequest(HttpServletRequest request,
HttpServletResponse response,
org.apache.velocity.context.Context ctx)
main routine to handle a request.
|
protected org.apache.commons.collections.ExtendedProperties |
loadConfiguration(ServletConfig config)
Called by the VelocityServlet init().
|
createContext, doGet, doPost, doRequest, error, fillContext, findInitParameter, getResponseWriter, getTemplate, getTemplate, getTemplate, getTemplate, getVelocityEngine, getVelocityProperty, init, initToolbox, initVelocity, mergeTemplate, performMerge, requestCleanup, setContentType, setVelocityEnginedoDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicedestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logprotected org.apache.commons.collections.ExtendedProperties loadConfiguration(ServletConfig config) throws IOException, FileNotFoundException
loadConfiguration in class org.apache.velocity.tools.view.servlet.VelocityViewServletIOExceptionFileNotFoundExceptionpublic org.apache.velocity.Template handleRequest(HttpServletRequest request, HttpServletResponse response, org.apache.velocity.context.Context ctx)
main routine to handle a request. Called by VelocityServlet, your responsibility as programmer is to simply return a valid Template
handleRequest in class org.apache.velocity.tools.view.servlet.VelocityViewServletctx - a Velocity Context object to be filled with data. Will be used for rendering this templateCopyright © 2003–2016 The Sakai Foundation. All rights reserved.