1, Initialize the framework's internal message bundle. These messages are used to output informational, warning, and error messages to the log files. The org.apache.struts.action.ActionResources bundle is used to obtain the internal messages.
2, Load from the Web.xml File The Initialization Parameters That Control Various Behaviors of The ActionServlet Class. These Parameters include Config, Debug, Detail, And Convertnull.
3, Load and initialize the servlet name and servlet mapping information from the web.xml file. These values will be used throughout the framework (mostly by tag libraries) to output correct URL destinations when submitting HTML forms. During this initialization, the DTDs used By The Framework Also Are Registered. The DTDS Are Used to Validate The Configuration File in The next step.
4, Load and initialize the Struts configuration data for the default application, which is specified by the config initialization parameter. The default Struts configuration file is parsed and an ApplicationConfig object is created and stored in the ServletContext. The ApplicationConfig object for the default application is Stored in the servletcontext with a key value of org.apache.struts.Action.Application.
5, Each message resource that is specified in the Struts configuration file for the default application is loaded, initialized, and stored in the ServletContext at the appropriate location, based on the key attribute specified in each message-resources element. If no key is specified ............................
6, Each data source declared in the Struts configuration file is loaded and initialized. If no data-sources elements are specified, this step is skipped.7, Load and initialize each plug-in specified in the Struts configuration file. The init () Method Will BE Called on Each and Every Plug-in Specified.
8, ONCE The Default Application Has Been Properly Initialized, The Servlet Init () Method Will Determine IF Any Application Modules Are Specified and IF So, Will Repeat Steps 4 THROUGH 7 for Each One.