public class JCSAdminServlet
extends org.apache.velocity.servlet.VelocityServlet
Initialization in a webapp will look something like this:
[servlet] [servlet-name]JCSAdminServlet[/servlet-name] [servlet-class]org.apache.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.
|
chooseCharacterEncoding, createContext, doGet, doPost, doRequest, error, getTemplate, getTemplate, handleRequest, init, initVelocity, loadConfiguration, mergeTemplate, requestCleanup, setContentType
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) throws java.lang.Exception
handleRequest
in class org.apache.velocity.servlet.VelocityServlet
request
- response
- context
- java.lang.Exception
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.