No result defined for action …… and result ……
2013-10-23 22:40
323 查看
最近在看struts2,试着做了一个例子,一直报错
类型,定义都没有错,也没有重复名称
反复检查了一个多小时,最后百度了一下,struts2.1要在struts.xml文件红定义packet时申明namespace,
开始的struts.xml,
<package name="default" extends="struts-default" >
改后的
<package name="default" extends="struts-default" namespace="/">
就可以了。
类型,定义都没有错,也没有重复名称
Struts Problem Report
Struts has detected an unhandled exception:Messages: | No result defined for action org.action.LoginAction and result error |
开始的struts.xml,
<package name="default" extends="struts-default" >
改后的
<package name="default" extends="struts-default" namespace="/">
就可以了。
相关文章推荐
- No result defined for action cn.nahan.cd.web.action.EmpAction and result insertPages
- Struts2 项目报错 No result defined for action com.xxx.xxAction and result input
- No result defined for action com.ys.action.ModuleAction and result success
- No result defined for action and result input异常
- struts异常:No result defined for action and result success
- No result defined for action jsp_entity.SysLog and result success
- No result defined for action com.weiyi.bbs.action.LoginAction and result success总结
- HTTP Status 404 - No result defined for action EmployeeAction and result input - action类似异常解决及原因剖析
- No result defined for action action.UploadAction and result input
- 关于初学者Could not find action or result :No result defined for action com.lyw.action.LoginAction and result success
- No result defined for action org.strutsOne.web.SumAction and result
- HTTP Status 404 - No result defined for action xx.xx.xxAction and result error
- No result defined for action and result input
- No result defined for action com.bdqn.action.UserRoleRelateAction and result input
- 关于No result defined for action org.action.StrutsAction and result success
- Struts2:(No result defined for action ** and result input) is not available.
- No result defined for action cn.xs.studentunion.action.DeptAction and result input
- [SSH]Struts2 -- No result defined for action and result input
- No result defined for action and result
- No result defined for action com.lzj.web.action.CustomerAction and result input