public class JCSAdminServlet extends org.apache.velocity.tools.view.VelocityViewServlet
Initialization in a webapp will look something like this:
[servlet] [servlet-name]JCSAdminServlet[/servlet-name] [servlet-class]org.apache.commons.jcs.admin.servlet.JCSAdminServlet[/servlet-class] [init-param] [param-name]properties[/param-name] [param-value]WEB-INF/conf/JCSAdminServlet.velocity.properties[/param-value] [/init-param] [/servlet]
FIXME: It would be nice to use the VelocityEngine model so this can be truly standalone. Right now if you run it in the same container as, say, turbine, turbine must be run first to ensure it's config takes precedence.
Constructor and Description |
---|
JCSAdminServlet() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.velocity.Template |
handleRequest(HttpServletRequest request,
HttpServletResponse response,
org.apache.velocity.context.Context context)
Velocity based admin servlet.
|
createContext, doGet, doPost, doRequest, error, fillContext, findInitParameter, getLog, getTemplate, getTemplate, getVelocityProperty, getVelocityView, init, manageResourceNotFound, mergeTemplate, requestCleanup, setContentType, setVelocityView
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
public JCSAdminServlet()
protected org.apache.velocity.Template handleRequest(HttpServletRequest request, HttpServletResponse response, org.apache.velocity.context.Context context)
handleRequest
in class org.apache.velocity.tools.view.VelocityViewServlet
request
- response
- context
- Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.