There's a bunch of bug fixes, and that's what works.
The order in which the problem is encountered is listed below: 1java.lang.nosuchmethodexception: No way.
The code is corrected, when the error is guaranteed class, the action name, the method is not misspelled, looked for a long time, did the package name from default to put action in the packet action and when this error occurs namespace= "/" No, and later added don't know which error will work
<?xml version= "1.0" encoding= "UTF-8"? ><! DOCTYPE struts Public "-//apache software foundation//dtd struts Configuration 2.0//en" "http://struts.apache.org/dtds/ Struts-2.0.dtd "><struts><package name=" action "namespace="/"extends=" Struts-default "><action Name= "QUERY1" class= "action.libraryaction" method= "Query1" ><result>/result.jsp</result></ Action><action name= "QUERY2" class= "action.libraryaction" method= "Query2" > <result name= "Success" >/result.jsp</result></action> <action name= "QUERY3" class= "Action.libraryaction" method= " Query3 "> <result name=" Success ">/result.jsp</result></action> </package>< /struts>
Struts2 There is no Action mapped for namespace [/] and Action name [XXXX] associated with context path [/xxxxx]
Struts.xml own position fly not under SRC, change back to make it
Could not find action or result:/project name/action name? parameter = parameter This error is the first action's result with the uppercase success changed to lowercase.
<?xml version= "1.0" encoding= "UTF-8"? ><! DOCTYPE struts Public "-//apache software foundation//dtd struts Configuration 2.0//en" "http://struts.apache.org/dtds/ Struts-2.0.dtd "><struts><packageextendsclassclass=" Action.libraryaction "method=" Query2 "> <result name=" Success ">/result.jsp</result></action > class= "Action.libraryaction" method= "Query3" > <result name= "Success" >/result.jsp </result></action> </Package ></struts>
Java struts2 Debug