HTTP Status 404 - No result defined for action com.baidu.action.MyAction and result success
我这次出现这个错误是因为,我的MyAction中的方法不是默认的execute,我更改了:
此时就应该在Struts.XML里的action标签中加上method="findAll",findAll是我的方法名:
然后就可以成功显示了。
我这次出现这个错误是因为,我的MyAction中的方法不是默认的execute,我更改了:
此时就应该在Struts.XML里的action标签中加上method="findAll",findAll是我的方法名:
然后就可以成功显示了。