(Itcast) 3. Search Order of action names

Source: Internet
Author: User

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 does not exist, perform Step 3. If this package exists

In the package, find action in the package (the default namespace is an empty string ).

The action cannot be found.
3. Find the package whose namespace is/path1/path2. If this package does not exist, go to Step 4. If this package exists, go

In this package, find the action named test. In the default namespace package, the action cannot be found, and the page prompts that the action cannot be found.

Action.
4. Find the package whose namespace is path1. If this package does not exist, perform Step 5. If this package exists

The action named test is found in the package. The action cannot be found in the package of the default namespace. The page prompts that the action cannot be found.

Action.
5. Find the package whose namespace is/. If the package exists, search for the action named test in the package.

When no action is found in the package or the package does not exist, the action will be searched in the package of the default namespace.

The action cannot be found.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.