Namespace = "csdn/" <package name = "ss" namespace = "/csdn"> <action = "delete"> </package> <package name =" test "namespace ="/csdn "> <action =" delete "> </package> <package name =" sss "namespace ="> <action = "delete"> </package> search order of Action names 1. Obtain the URI of the Request Path, for example, the url is http: // server/struts2/path1/path2/path3/test. action 2. first, find the package whose namespace is/path1/path2/path3. If this package exists, search for the action named test in this package. If If this package does not exist, go to step 3; www.2cto.com 3. find the package whose namespace is/path1/path2. If this package exists, search for the action named test in this package. If this package does not exist, go to step 4; 4. find the package whose namespace is/path1. If the package exists, search for the action named test in the package. If the package still does not exist, go to the package of the default namaspace to find the action named test (the default namespace is an empty string ""). If the action still cannot be found, the page prompts that the action cannot be found. The struts2 Prototype of the Action Prototype creates a new Action object Servlet Singleton Prototype upon each request. This object can be used every time a servlet object is created during the first request. Servlet lifecycle creation --- init --- service --- destory