public class WebWorkVelocityServlet
extends org.apache.velocity.servlet.VelocityServlet
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CONTEXT |
protected org.apache.commons.logging.Log |
log |
protected static String |
WEBWORK_UTIL |
| Constructor and Description |
|---|
WebWorkVelocityServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.velocity.context.Context |
createContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Create a context that delegates to the standard context and also allows Velocity to access properties from the
ValueStack.
|
protected org.apache.velocity.Template |
handleRequest(javax.servlet.http.HttpServletRequest aRequest,
javax.servlet.http.HttpServletResponse aResponse,
org.apache.velocity.context.Context ctx)
Get the template to show.
|
void |
init() |
void |
service(javax.servlet.ServletRequest aRequest,
javax.servlet.ServletResponse aResponse) |
chooseCharacterEncoding, doGet, doPost, doRequest, error, getTemplate, getTemplate, handleRequest, init, initVelocity, loadConfiguration, mergeTemplate, requestCleanup, setContentTypedoDelete, doHead, doOptions, doPut, doTrace, getLastModified, serviceprotected static final String CONTEXT
protected static final String WEBWORK_UTIL
protected org.apache.commons.logging.Log log
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void service(javax.servlet.ServletRequest aRequest,
javax.servlet.ServletResponse aResponse)
throws javax.servlet.ServletException,
IOException
service in interface javax.servlet.Servletservice in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected org.apache.velocity.context.Context createContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
createContext in class org.apache.velocity.servlet.VelocityServletprotected org.apache.velocity.Template handleRequest(javax.servlet.http.HttpServletRequest aRequest,
javax.servlet.http.HttpServletResponse aResponse,
org.apache.velocity.context.Context ctx)
throws Exception
handleRequest in class org.apache.velocity.servlet.VelocityServletExceptionCopyright © 2013 Atlassian. All Rights Reserved.