纵马饮白虹 2015-12-24 08:52 采纳率: 0%
浏览 1989
已采纳

form表单提交后报错,具体内容进来看.

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表单
图片说明
图片说明
哪里错了?为什么错?怎么办?

  • 写回答

6条回答 默认 最新

  • lambda-fk 2015-12-24 09:43
    关注

    你看错误信息就知道:
    The requested list key 'polist' could not be resolved as a collection/array/map/enumeration/iterator

    list属性定义的变量在Action中必须是一个可以迭代的对象如 数组,列表,Map等。
    你在你的Action中看看这个polist是怎么定义的。
    是没有定义getter和setter还是 你把它的类型定义错了。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(5条)

报告相同问题?