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