Class ActionServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.struts.action.ActionServlet
ru.bgcrm.servlet.ActionServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ActionServlet extends org.apache.struts.action.ActionServlet
Overwritten ActionServlet, loads struts-config.xml also for enabled plugins.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    Annotation for marking action classes.
  • Field Summary

    Fields inherited from class org.apache.struts.action.ActionServlet

    chainConfig, config, configDigester, convertNull, internal, internalName, registrations, servletMapping, servletName
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getActionPath(Class<? extends org.apache.struts.actions.BaseAction> clazz)
    Selects an action's path, declared in annotation ActionServlet.Action.
    void
     
    protected org.apache.struts.config.ModuleConfig
    initModuleConfig(String prefix, String paths)
    Loads annotated actions.

    Methods inherited from class org.apache.struts.action.ActionServlet

    addServletMapping, destroy, destroyConfigDigester, destroyInternal, destroyModules, doGet, doPost, getInternal, getModuleConfig, getRequestProcessor, initChain, initConfigDigester, initInternal, initModuleActions, 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 Details

    • ActionServlet

      public ActionServlet()
  • Method Details

    • init

      public void init() throws javax.servlet.ServletException
      Overrides:
      init in class org.apache.struts.action.ActionServlet
      Throws:
      javax.servlet.ServletException
    • initModuleConfig

      protected org.apache.struts.config.ModuleConfig initModuleConfig(String prefix, String paths) throws javax.servlet.ServletException
      Loads annotated actions.
      Overrides:
      initModuleConfig in class org.apache.struts.action.ActionServlet
      Throws:
      javax.servlet.ServletException
    • getActionPath

      public static String getActionPath(Class<? extends org.apache.struts.actions.BaseAction> clazz)
      Selects an action's path, declared in annotation ActionServlet.Action.
      Parameters:
      clazz - the action class.
      Returns:
      string from the class annotation.
      Throws:
      IllegalArgumentException - if no annotation defined.