When the ActionServlet Receives A Request, IT Completes The Following Steps:
That Dopost () or doget () Methods Receive a Request and invoke the process () method.
2.The process () Method gets the current requestProcessor and invokes the requestprocessor. Process () Method.
3.The RequestProcessor.process () method is where the current request is actually serviced. This method retrieves, from the struts-config.xml file, the element that matches the path submitted on the request. It does this by matching The path passed in the tag's action element to the Element with the Same path value. Here's an example of this match:
"forward name =" Success "Path =" / quote.jsp "/> action>
4.When the RequestProcessor.process () method has a matching , it looks for a entry that has a name attribute that matches the element's name attribute . The following code snippet contains a sample match : form-beans> action> 5.when the requestProcessor.Process () Method Knows the fully qualified name of the FormBean, it creates or retrieves a pooled instance of the ActionForm named by the element's type attribute and populates its data members with the values submitted on the request. 6.After the ActionForm's data members are Populated, The RequestProcessor.Process () Method Calls the Actionform.Validate () Method, Which Checks The Validity of The Submitted Values. 7.at this point, the requestprocessor.Process () Met HOD KNOWS All That It Needs to Know and It Is Time to Actually Service The Request. it does this by retrieving the full full qualified name of the action class from the element '
s type attribute, creating or retrieving the named class, and calling the Action.execute () method. 8.When the Action class returns from its processing, its execute () method returns an ActionForward object that is used to determine the target of this transaction. The RequestProcessor.process () method resumes control, and the request is then forwarded to the determined target. 9.At this point, the ActionServlet instance has completed its processing for this request and is ready to service future requests.Configuring the ActionServlet :