通配符问题,百思不得求解,求大佬点拨
警告: Could not find action or result: /HelloWorld/helloworld_add.action
There is no Action mapped for namespace [/] and action name [helloworld_add] associated with context path [/HelloWorld]. - [unknown location]
public class HelloWorldAction extends ActionSupport {
public String add() {
System.out.println("执行add");
return "add";
}
public String update() {
return "update";
}
<struts>
<package name="default" namespace="/" extends="struts-default">
<action name="helloworld_*" method="{1}" class="com.imooc.action.HelloWorldAction">
<result>/index.jsp</result>
<result name="add">/{1}.jsp</result>
<result name="update">/{1}.jsp</result>
</action>
</package>
<constant name="struts.enable.DynamicMethodInvocation" value="false"></constant>
</struts>