HTTP Status 404 - No result defined for action com.baidu.action.MyAction and result success

我这次出现这个错误是因为,我的MyAction中的方法不是默认的execute,我更改了:

此时就应该在Struts.XML里的action标签中加上method="findAll",findAll是我的方法名:

然后就可以成功显示了。

猜你喜欢

转载自blog.csdn.net/loveliness_peri/article/details/80977778
今日推荐