org.apache.struts2.dispatcher.ng.servlet
Class StrutsServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.struts2.dispatcher.ng.servlet.StrutsServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class StrutsServlet
extends HttpServlet

Servlet dispatcher for Struts. The preferred way to use Struts is as a filter via the StrutsPrepareAndExecuteFilter and its variants. This servlet dispatcher is only for those that really know what they are doing as it may not support every feature of Struts, particularly static resource serving.

See Also:
Serialized Form

Field Summary
private  ExecuteOperations execute
           
private  PrepareOperations prepare
           
 
Constructor Summary
StrutsServlet()
           
 
Method Summary
 void destroy()
           
 void init(ServletConfig filterConfig)
           
 void service(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
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
 

Field Detail

prepare

private PrepareOperations prepare

execute

private ExecuteOperations execute
Constructor Detail

StrutsServlet

public StrutsServlet()
Method Detail

init

public void init(ServletConfig filterConfig)
          throws ServletException
Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException

service

public void service(HttpServletRequest request,
                    HttpServletResponse response)
             throws IOException,
                    ServletException
Overrides:
service in class HttpServlet
Throws:
IOException
ServletException

destroy

public void destroy()
Specified by:
destroy in interface Servlet
Overrides:
destroy in class GenericServlet


Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.