query = s.createQuery("from SysApplist as t1 , SysCallinlimit as t2 where t1.id=t2.id");
请问hql这是两表的关联吧,但是我在页面显示确是报这种错误:
javax.servlet.ServletException: The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List or array, but that value cannot be converted to an integer.
显示语句
<c:forEach var="cddate" items="${sessionScope.selectList}">
<tr>
<td height="12" nowrap class="text12"><div align="center"> ${cddate.appid} </div></td>
<td height="12" nowrap class="text12"><div align="center"> ${cddate.handset} </div></td>
<td height="12" nowrap class="text12"><div align="center"> ${cddate.cpid} </div></td>
<td height="12" nowrap class="text12"><div align="center"> ${cddate.cpname} </div></td>
<td height="12" nowrap class="text12"><div align="center"> ${cddate.servicetype} </div></td>
<td height="12" nowrap class="text12"><div align="center"> ${cddate.usestyle} </div></td>
</tr>
</c:forEach>但是我对单表操作,是能通过的,郁闷,大家帮我解决解决
请问hql这是两表的关联吧,但是我在页面显示确是报这种错误:
javax.servlet.ServletException: The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List or array, but that value cannot be converted to an integer.
显示语句
<c:forEach var="cddate" items="${sessionScope.selectList}">
<tr>
<td height="12" nowrap class="text12"><div align="center"> ${cddate.appid} </div></td>
<td height="12" nowrap class="text12"><div align="center"> ${cddate.handset} </div></td>
<td height="12" nowrap class="text12"><div align="center"> ${cddate.cpid} </div></td>
<td height="12" nowrap class="text12"><div align="center"> ${cddate.cpname} </div></td>
<td height="12" nowrap class="text12"><div align="center"> ${cddate.servicetype} </div></td>
<td height="12" nowrap class="text12"><div align="center"> ${cddate.usestyle} </div></td>
</tr>
</c:forEach>但是我对单表操作,是能通过的,郁闷,大家帮我解决解决
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货