struts2 select 验证异常

来源:互联网 发布:核盾网络验证是什么 编辑:程序博客网 时间:2024/05/22 14:56

今天用到s:select 然后进行表单验证,老出错,

tag 'select', field 'list', name xxxx: The requested list key '' could not be resolved as a collection/array/map/enumeration/iterator type

原来是验证失败返回input页面时,由于没有取到list的值,所以报上述异常

原创粉丝点击