Struct2 structs.xml File Configuration There is no Action mapped for action name issue

Source: Internet
Author: User

Have not written a blog for a long time, today began to write, new technology too much, only through the blog can accumulate, I have limited level, if there are errors, welcome correction, Thank you

Today in MAVEN configuration Web project Struct2, found that they ignore a lot of problems, once again record, hope can help meet the same or similar problems of classmates, I have been the second encounter this problem, is not recorded, time is long, encountered also forget how to solve, Spit it out here yourself ha. There is no action mapped for action name the problem is that the corresponding action is not found, the main reason for the problem is a few:

1, the action name does not match, this needs the reader to check himself

2, the compiled Struct2.xml file is not in the web-inf/classes inside, after compiling into the classes folder to see To know, this problem may be caused by two reasons:

(1) Set the compiler output path is not web-inf/classes, you can right-click the project->properties->java build path inside the Source tab, set Dafault output folder as the project name Just/webcontent/web-inf/classes.

(2) Structs.xml not in the SRC folder, this and the above set the principle, because my is MAVEN management project, in the SRC folder has Java and Resource folder, do not know why did not put resources inside the classes inside, make there is no action mapped for action name, then put Structs.xml in Java there's no problem.

Because of the network problem, it does not map the HA

Have a night, hey, hope to meet the same problem readers have help, thank you

Struct2 structs.xml File Configuration There is no Action mapped for action name issue

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.