form提交报错
严重: Servlet.service() for servlet jsp threw exception
tag 'select', field 'list', name 'personcost.pid': The requested list key 'polist' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]
严重: Servlet.service() for servlet default threw exception
java.lang.IllegalStateException
我的form表单
哪里错了?为什么错?怎么办?

form表单提交后报错,具体内容进来看.
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
6条回答 默认 最新
- lambda-fk 2015-12-24 09:43关注
你看错误信息就知道:
The requested list key 'polist' could not be resolved as a collection/array/map/enumeration/iteratorlist属性定义的变量在Action中必须是一个可以迭代的对象如 数组,列表,Map等。
你在你的Action中看看这个polist是怎么定义的。
是没有定义getter和setter还是 你把它的类型定义错了。本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报