码迷,mamicode.com
首页 > 其他好文 > 详细

no result defined for action

时间:2016-09-08 12:40:51      阅读:122      评论:0      收藏:0      [点我收藏+]

标签:

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

标签:

原文地址:http://www.cnblogs.com/liuconglin/p/5852566.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!