About errors in Struts2: For example, there is no action mapped for Namespace/and action name Product-input.

Source: Internet
Author: User

When you configure the Struts.xml file, it appears

There is no Action mapped for Namespace/and action name .... It means that there is no product-input mapping file or namespace.

After the cause of this error occurs:

Do the following checks:

1: Change the namespace= "/" in the Struts.xml to Namespace= "" or remove, using the default namespace .

2:struts.xml the location of the configuration file, whether under SRC.

Is the spelling of the 3:struts.xml correct?

Name= "Struts2" in 4:package suggested that struts2 be changed to another name, which would easily cause conflict.

After checking the above steps, the There is no action mapped for Namespace/and action name .... such a mistake. Then check that the compiled Struts.xml file is in the Web-inf directory .

Some IDE default compiled file directory is under the build, this way can not find Struts.xml, reported as the error is normal


About Changing the default compilation output path for Eclipse Web projects:

Eclipse can only be changed for the project because it defaults to the build directory and can only be changed with the project Project Right-"Properties-" Java Build Path-"source-" Default output folder, select

There is also a more convenient. Because this error often occurs at the very beginning, you can recreate the project. A lot of benefits: the most important thing is when you change the default compiled output path, you may lose the file.

The change method is as follows:

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7A/D6/wKiom1a8shSz9SC5AADIBRDzapQ291.png "style=" float: none; "title=" Qq20160212000734.png "alt=" Wkiom1a8shsz9sc5aadibrdzapq291.png "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7A/D6/wKiom1a8shXjggomAADQaLdOGSo935.png "style=" float: none; "title=" Qq20160212000751.png "alt=" Wkiom1a8shxjggomaadqaldogso935.png "/>

The first picture is the default setting, and the second picture is the one I modified.



That's it. Can you give me a message, please?






This article is from the "Celadon Collar" blog, please be sure to keep this source http://9849113.blog.51cto.com/9839113/1741575

About errors in Struts2: For example, there is no action mapped for Namespace/and action name Product-input.

Related Article

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.