我有两个数组列表,想以表格格式打印它们。我尝试了以下操作并得到一个异常 - java.lang.NumberFormatException: For input string: "ss"
JAVA代码
List<Territory> terrList = new ArrayList<Territory>();
List<ProspCount> prospCountList = new ArrayList<ProspCount>();
model.put("terrList",terrList);
model.put("prospCountList",prospCountList );
领土类的结构
String terr;
ProspCount 类的结构
private Integer taggedCount;
private Integer ss;
private Integer nss;
private Integer ssA;
JSP代码:
<c:forEach items="${model.terrList}" var="terr" varStatus = "loop">
<tr>
<td>${terr}</td>
<td> ${model.prospCountList.ss[loop.index]} </td>
<td> ${model.prospCountList.nss[loop.index]} </td>
.....
.....
</tr>
</c:forEach>