如果为action配置了类,那么默认就会执行Action类的excute方法,Action类的写法三种: ① public class Action1 { public String execute(){ return "abc";//根据返回结果,去xml文件中找name与之匹配的result } } ② import com.opensymphony.xwork2.Action;//ActionSupport类实现了该接口 public class
1.问题描述 在struts.xml中配置用通配符方式调用action中的add()方法,访问 http://localhost:8080/Struts2Demo/helloworld_add.action时,出现了这个熟悉的错误: HTTP Status 404 – Not Found Type Status Report Message There is no Action mapped for namespace [/] and action name [helloworld_add] a