no result defined for action
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了no result defined for action相关的知识,希望对你有一定的参考价值。
1.no result defined for action .......and result input 或者
no result defined for action .......and result dataAccessFailure
原因: 类型转换异常
1.实体类中,有Double类型的属性, 当页面向action传参时,action中的属性有该实体,页面传的是String类型的,属性不能转换
2. 页面中 <input name=" "> 有多个input标签,name值一样, 传过来了多个值, 导致实体中的属性不知道用哪个值
解决:
该属性,在action中单独接收,在调用实体的set方法
思考:strut2接收页面参数时的类型自动转换机制?
以上是关于no result defined for action的主要内容,如果未能解决你的问题,请参考以下文章
struts异常:No result defined for action
No result defined for action com.action.Actionxxx and result xxx
HTTP Status 404 - No result defined for action com.csdhsm.struts.action.LoginAction and result error
No result defined for action cn.crm.action.LinkManAction and result input
[Struts2] No result defined for action ... and result input & Invalid field value for field