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(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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
protected org.apache.velocity.Template handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.velocity.context.Context context)
handleRequest
in class org.apache.velocity.tools.view.VelocityViewServlet
request
- response
- context
- Exception
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.