Anyframe Web

anyframe.web.struts.action
Class DefaultActionServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.struts.action.ActionServlet
              extended by anyframe.web.struts.action.DefaultActionServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

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

ActionServlet provides the "controller" in the Model-View-Controller (MVC) design pattern for web applications that is commonly known as "Model 2". This nomenclature originated with a description in the JavaServerPages Specification, version 0.92, and has persisted ever since (in the absence of a better name).

Generally, a "Model 2" application is architected as follows:

The standard version of RequestsProcessor implements the following logic for each incoming HTTP request. You can override some or all of this functionality by subclassing this object and implementing your own version of the processing.

The standard version of ActionServlet is configured based on the following servlet initialization parameters, which you will specify in the web application deployment descriptor (/WEB-INF/web.xml) for your application. Subclasses that specialize this servlet are free to define additional initialization parameters.

We changed org.apache.struts.action.ActionServlet Class into anyframe.web.struts.common.action.DefaultActionServlet Class in Anyframe.

Author:
modified by Byunghun Woo
See Also:
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
DefaultActionServlet()
           
 
Method Summary
protected  void destroyRequestProcessors()
           Remove RequestProcessors from this servlet context.
 void init()
          Initialize this servlet.
protected  void initModuleMessageResources(org.apache.struts.config.ModuleConfig config)
           Initialize the application MessageResources for the specified module.
 
Methods inherited from class org.apache.struts.action.ActionServlet
addServletMapping, destroy, destroyConfigDigester, destroyInternal, destroyModules, doGet, doPost, getInternal, getModuleConfig, getRequestProcessor, initChain, initConfigDigester, initInternal, initModuleActions, initModuleConfig, initModuleConfigFactory, initModuleExceptionConfigs, initModuleFormBeans, initModuleForwards, 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

DefaultActionServlet

public DefaultActionServlet()
Method Detail

destroyRequestProcessors

protected void destroyRequestProcessors()

Remove RequestProcessors from this servlet context.


init

public void init()
          throws javax.servlet.ServletException

Initialize this servlet. Most of the processing has been factored into support methods so that you can override particular functionality at a fairly granular level.

Overrides:
init in class org.apache.struts.action.ActionServlet
Throws:
javax.servlet.ServletException - if we cannot configure ourselves correctly

initModuleMessageResources

protected void initModuleMessageResources(org.apache.struts.config.ModuleConfig config)
                                   throws javax.servlet.ServletException

Initialize the application MessageResources for the specified module.

Overrides:
initModuleMessageResources in class org.apache.struts.action.ActionServlet
Parameters:
config - ModuleConfig information for this module
Throws:
javax.servlet.ServletException - if initialization cannot be performed
Since:
Struts 1.1

Anyframe Web

Copyright © 2008-2009 Samsung SDS. All Rights Reserved.