com.opensymphony.webwork.pico
Class PicoWebWork2ServletDispatcher

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.opensymphony.webwork.dispatcher.ServletDispatcher
              extended by com.opensymphony.webwork.pico.PicoWebWork2ServletDispatcher
All Implemented Interfaces:
WebWorkStatics, Serializable, Servlet, ServletConfig
Direct Known Subclasses:
PicoServletDispatcher

Deprecated. Use PicoFilterDispatcher

public class PicoWebWork2ServletDispatcher
extends ServletDispatcher

Extension to the standard WebWork2 ServletDispatcher that instantiates a new container in the request scope for each request and disposes of it correctly at the end of the request.

To use, replace the WebWork ServletDispatcher in web.xml with this.

Author:
Joe Walnes
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.webwork.dispatcher.ServletDispatcher
LOG
 
Fields inherited from interface com.opensymphony.webwork.WebWorkStatics
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER
 
Constructor Summary
PicoWebWork2ServletDispatcher()
          Deprecated.  
 
Method Summary
 void service(HttpServletRequest request, HttpServletResponse response)
          Deprecated. Services the request by determining the desired action to load, building the action context and then executing the action.
 
Methods inherited from class com.opensymphony.webwork.dispatcher.ServletDispatcher
init
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, 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
 

Constructor Detail

PicoWebWork2ServletDispatcher

public PicoWebWork2ServletDispatcher()
Deprecated. 
Method Detail

service

public void service(HttpServletRequest request,
                    HttpServletResponse response)
             throws ServletException
Deprecated. 
Description copied from class: ServletDispatcher
Services the request by determining the desired action to load, building the action context and then executing the action. This handles all servlet requests including GETs and POSTs.

This method also transparently handles multipart requests.

Overrides:
service in class ServletDispatcher
Parameters:
request - the HttpServletRequest object.
response - the HttpServletResponse object.
Throws:
ServletException - if an error occurs while loading or executing the action.

WebWork Project Page