org.apache.struts2.views.velocity
Class StrutsVelocityServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.velocity.servlet.VelocityServlet
org.apache.struts2.views.velocity.StrutsVelocityServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Deprecated. please use VelocityResult
instead of direct access
public class StrutsVelocityServlet
- extends org.apache.velocity.servlet.VelocityServlet
- See Also:
- Serialized Form
Fields inherited from class org.apache.velocity.servlet.VelocityServlet |
CONTENT_TYPE, DEFAULT_CONTENT_TYPE, DEFAULT_OUTPUT_ENCODING, INIT_PROPS_KEY, REQUEST, RESPONSE |
Method Summary |
protected org.apache.velocity.context.Context |
createContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated. |
protected org.apache.velocity.Template |
handleRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
org.apache.velocity.context.Context context)
Deprecated. |
void |
init(javax.servlet.ServletConfig servletConfig)
Deprecated. |
protected java.util.Properties |
loadConfiguration(javax.servlet.ServletConfig servletConfig)
Deprecated. This method extends the VelocityServlet's loadConfiguration method by performing the following actions:
invokes VelocityServlet.loadConfiguration to create a properties object
alters the RESOURCE_LOADER to include a class loader
configures the class loader using the StrutsResourceLoader
|
protected void |
mergeTemplate(org.apache.velocity.Template template,
org.apache.velocity.context.Context context,
javax.servlet.http.HttpServletResponse response)
Deprecated. create a PageContext and render the template to PageContext.getOut() |
Methods inherited from class org.apache.velocity.servlet.VelocityServlet |
chooseCharacterEncoding, doGet, doPost, doRequest, error, getTemplate, getTemplate, handleRequest, initVelocity, requestCleanup, setContentType |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StrutsVelocityServlet
public StrutsVelocityServlet()
- Deprecated.
init
public void init(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
- Deprecated.
- Specified by:
init
in interface javax.servlet.Servlet
- Overrides:
init
in class org.apache.velocity.servlet.VelocityServlet
- Throws:
javax.servlet.ServletException
createContext
protected org.apache.velocity.context.Context createContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Deprecated.
- Overrides:
createContext
in class org.apache.velocity.servlet.VelocityServlet
handleRequest
protected org.apache.velocity.Template handleRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
org.apache.velocity.context.Context context)
throws java.lang.Exception
- Deprecated.
- Overrides:
handleRequest
in class org.apache.velocity.servlet.VelocityServlet
- Throws:
java.lang.Exception
loadConfiguration
protected java.util.Properties loadConfiguration(javax.servlet.ServletConfig servletConfig)
throws java.io.IOException,
java.io.FileNotFoundException
- Deprecated.
- This method extends the VelocityServlet's loadConfiguration method by performing the following actions:
- invokes VelocityServlet.loadConfiguration to create a properties object
- alters the RESOURCE_LOADER to include a class loader
- configures the class loader using the StrutsResourceLoader
- Overrides:
loadConfiguration
in class org.apache.velocity.servlet.VelocityServlet
- Parameters:
servletConfig
-
- Throws:
java.io.IOException
java.io.FileNotFoundException
- See Also:
VelocityServlet.loadConfiguration(javax.servlet.ServletConfig)
mergeTemplate
protected void mergeTemplate(org.apache.velocity.Template template,
org.apache.velocity.context.Context context,
javax.servlet.http.HttpServletResponse response)
throws org.apache.velocity.exception.ResourceNotFoundException,
org.apache.velocity.exception.ParseErrorException,
org.apache.velocity.exception.MethodInvocationException,
java.io.IOException,
java.io.UnsupportedEncodingException,
java.lang.Exception
- Deprecated.
- create a PageContext and render the template to PageContext.getOut()
- Overrides:
mergeTemplate
in class org.apache.velocity.servlet.VelocityServlet
- Throws:
org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.ParseErrorException
org.apache.velocity.exception.MethodInvocationException
java.io.IOException
java.io.UnsupportedEncodingException
java.lang.Exception
- See Also:
for additional documentation
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.