专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > Java Web开发

!求解答

发布时间:2010-05-31 07:01:21 文章来源:www.iduyao.cn 采编人员:星星草
求助!求解答!
An error occurred at line: 352 in the jsp file: /WEB-INF/web/hsys/HSYS05020200.jsp
Can only iterate over an array or an instance of java.lang.Iterable
349: <td align="center" valign="middle" class="td1b">&nbsp;</td>
350: </tr>
351: </table> 
352: <%for(HitListDataVo forVo2 : forVo1.get("operationList")){%>
353: <table width="700" border="0" cellpadding="0" cellspacing="0" >
354: <tr bgColor=#ffffff height=30 style=" color:#31587E;">
355: <td width="25" align="right" valign="middle">&nbsp;</td>


知道错误是在第352行的forVo1.get("operationList")这里,但是不知道怎么去改不,新手,麻烦讲的详细一点,谢谢了。


代码是从其他库里面拷过来的,但是数据结构不一样,其他的字段都是getString(name)转换过来了,但是这里不知道怎么改了,求教~

------解决方案--------------------
根据错误提示:forVo1.get("operationList")返回的对象不是一个数组或Iterable的实例。也就是说你这个对象是普通对象,不能够进行遍历。
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: