org.nanocontainer.nanowar.struts
Class PicoActionServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.struts.action.ActionServlet
              extended by org.nanocontainer.nanowar.struts.PicoActionServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class PicoActionServlet
extends org.apache.struts.action.ActionServlet

Uses Pico to produce Actions and inject dependencies into them. Only use this class if you are using Struts 1.0. If you are using Struts 1.1, use PicoRequestProcessor or PicoTilesRequestProcessor instead.

Author:
Stephen Molitor
See Also:
ActionFactory, PicoRequestProcessor, PicoTilesRequestProcessor, Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.action.ActionServlet
chainConfig, config, configDigester, convertNull, internal, internalName, log, registrations, servletMapping, servletName
 
Constructor Summary
PicoActionServlet()
           
 
Method Summary
protected  org.apache.struts.action.Action processActionCreate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Creates or retrieves the action instance.
 
Methods inherited from class org.apache.struts.action.ActionServlet
addServletMapping, destroy, destroyConfigDigester, destroyInternal, destroyModules, doGet, doPost, getInternal, getModuleConfig, getRequestProcessor, init, initChain, initConfigDigester, initInternal, initModuleActions, initModuleConfig, initModuleConfigFactory, initModuleExceptionConfigs, initModuleFormBeans, initModuleForwards, initModuleMessageResources, initModulePlugIns, initModulePrefixes, initOther, initServlet, parseModuleConfigFile, parseModuleConfigFile, process, processActionConfigClass, processActionConfigExtension, processExceptionConfigClass, processExceptionExtension, processFormBeanConfigClass, processFormBeanExtension, processForwardConfigClass, processForwardExtension, splitAndResolvePaths
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, 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
 

Constructor Detail

PicoActionServlet

public PicoActionServlet()
Method Detail

processActionCreate

protected org.apache.struts.action.Action processActionCreate(org.apache.struts.action.ActionMapping mapping,
                                                              javax.servlet.http.HttpServletRequest request)
Creates or retrieves the action instance. The action is retrieved from the actions Pico container, using the mapping path as the component key. If no such action exists, a new one will be instantiated and placed in the actions container, thus injecting its dependencies.

Parameters:
mapping - the action mapping.
request - the HTTP request.
Returns:
the action instance.


Copyright © 2003-2009 Codehaus. All Rights Reserved.