The default namespace"Namespace = ""
",
Root namespace
"Namespace = "/"
".
<Package name = "test" extends = "struts-Default">
If no namespace is specified, the default namespace is
"Namespace = ""
".
by default, actions in a namespace can process action requests in any namespace. For example, if the URL is/barspace/bar. action request, and the/barspace namespace does not have an action named bar, the action named bar under the default namespace will also process the user request. However, the action in the root namespace only processes the action requests in the root namespace. This is the difference between the root namespace and the default namespace.
The namespace has only one level. If the requested URL is/bookservice/search/get. action. The system first searches for the get action in the/bookservice/search namespace. If the get action is found in the namespace, this action is used to process user requests. if not found, the system will directly go to the default namespace to find the get action, instead of looking for an action named get
In the/bookservice namespace.