The requested list key 'map' could not be resolved as a collection/array/map/enumeration/iterator ty
来源:互联网 发布:linux进程调度命令 编辑:程序博客网 时间:2024/05/16 19:16
The requested list key 'map' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or peopl
有这种提示的就是因为比如jsp代码中
<s:select list="userlist" listKey="id" listValue="firstname"></s:select>
userlist为空(是否为空可以通过Struts2的<debug/>标签显示的堆栈中查看,查找一下为什么为空吧。
一般情况可能是:
1、在Action类中没有给userlist变量生成get/set方法,
2、提交请求时并没有调用到对应的Action类,
3、userlist变量没有赋值成功(比如没有new、从数据库查询值的时候返回空等)
4、你的底层配置有问题(比如未导入jdbc包到项目)
0 0
- The requested list key 'map' could not be resolved as a collection/array/map/enumeration/iterator ty
- The requested list key 'list' could not be resolved as a collection/array/map/enumeration/iterator t
- The requested list key 'deptlist' could not be resolved as a collection/array/map/enumeration/iterat
- The requested list key 'deptList' could not be resolved as a collection/array/map/enumeration/iterat
- The requested list key 'map' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or peopl
- 关于The requested list key 'map' could not be resolved as a collection/array/map/enumera...
- The requested list key '#request.localprovi' could not be resolved as a collection/array/map/enumera
- Select标签出现了The requested list key 'noticeType' could not be resolved as a collection/array/map/enume
- Struts2 :could not be resolved as a collection/array/map/enumeration/iterator type
- could not be resolved as a collection/array/map/enumeration/iterator type的异常处理
- 报错处理:could not be resolved as a collection/array/map/enumeration/iterator type
- The requested list key could not be resolved as a collection。。。。
- 关于struts2的checkboxlist、select等标签发生could not be resolved as a collection/array/map/enumeration/iterator type异常的记录
- 关于struts2的checkboxlist、select等标签发生could not be resolved as a collection/array/map/enumeration/iterat
- tag 'select', field 'list', name 'did': The requested list key '#dList' could not be resolved as a c
- tag 'select', field 'list', name 'did': The requested list key '#id' could not be resolved as a c
- <s:doubleselect 的使用-不支持EL表达式,需要使用OGNL来动态赋值-could not be resolved as a collection/array/map/enumerati
- java类集整理collection map iterator listiterator list set enumeration
- JavaScript去除日期中的“-”
- swift入门
- 冒泡排序
- 编写小游戏《贪头蛇》第一篇
- 类图和对象图
- The requested list key 'map' could not be resolved as a collection/array/map/enumeration/iterator ty
- 图片过大处理
- lua学习之类型与值
- android 初级入门 intent
- eclipse导出jar包,不能加载@RequestMapping等类似注解的问题
- OOA与OOD的关系
- thrift下C++服务器和客户端开发
- implement a function of String randomAlphabetic(int count)
- CODE:BLOCKS不支持C++11