The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List
来源:互联网 发布:醉仙武进阶数据 编辑:程序博客网 时间:2024/06/05 10:30
绑定数据显示下拉列表时,报了个错
The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List or array, but that value
JSP页面代码:
<select name="optype">
<option value="0">--请选择--</option>
<logic:iterate id="opt" name="kindss" scope="request">
<option value="${opt.id }" >${opt.name }</option>
</logic:iterate>
网上找解决方法也找不到合适的
改成下面代码时可以
<select name="optype">
<option value="0">--请选择项目类别--</option>
<logic:iterate id="opt" name="kindss" scope="request">
<option value="${opt[0] }" >${opt[1] }</option>
</logic:iterate>
先用着 有了更好的方法后再说了
- The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List
- 问题解决:javax.servlet.jsp.el.ELException: The "." operator was supplied with an index value of type "java.lang.String" to be applie
- Value of type java.lang.String cannot be converted to JSONObject
- Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONArra
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSON
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- Android : Value of type java.lang.String cannot be converted to JSONObject 异常
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- JSONException: Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSON
- Value of type java.lang.String cannot be converted to JSONObject 错误解决
- Hibernate -annotation 学习笔记 1 马士兵
- Spring配置文件总结
- Trim函数改进-删除左右指定字符
- mini6410 uboot makefile 注释
- android4.0源码下载 编译 系统体验~图解
- The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List
- 看到飞凌嵌入式论坛上的linux移植比较详细 记下啦!
- json_encode问题
- 一个Java程序员应该掌握的10项技能
- sqlite3 命令介绍
- 3DMax Plugin - Program 1
- 安装Oracle Enterprise Manager 11g Fusion Middleware Control
- 显示html/css的警告错误或错误(转自:http://hi.baidu.com/86727515/blog/item/f030f0050fa8c1c77b89471d.html)
- (oracle10g复习一)oracle10g创建数据库的方法 (转)