Tag Archives: There is no Action mapped for namespace [/] and action name [abc_show] associated with context path [/helloStruts].

There is no Action mapped for namespace [/] and action name [abc_show] associated with context path [/helloStruts].

There is no Action mapped for namespace [/] and action name [abc_show] associated with context path [/helloStruts].

problem found: the page cannot be found

analysis problem: the page cannot be found. The prompt is my mapping problem. But when I was in struts When the XML file is changed from normal naming to wildcard, an error will appear, and the prompt is as follows

environment: struts 2 (version 2.5)

problem solving: it may be because of the 2.5 version, so it is more rigorous

<!--Allow dynamic method calls, wildcard + placeholder combinations, must add this line of code Version 2.5-->
	<constant name="struts.enable.DynamicMethodInvocation"
		value="true" />
	<constant name="struts.devMode" value="false"/>

<!--Error Method for action Action is not allowed Add global-allowed-methods 
			Indicates a method that allows dynamic invocation Version 2.5-->
		<global-allowed-methods>regex:.*</global-allowed-methods>

Save and restart the server.