日期:2014-05-18  浏览次数:20767 次

求助!求解答!
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的实例。也就是说你这个对象是普通对象,不能够进行遍历。