######controller层相关代码:
List<PsAcctDeps> psAcctDeps = this.psAcctDepsService.getByParam(paramMap);//[com.bank.perf.perfps.entity.PsAcctDeps@247039, com.bank.perf.perfps.entity.PsAcctDeps@5843ae41]
model.put("psAcctDeps",psAcctDeps);
<table><tr>
<td class="showContentAttrName">客户号:</td>
<td>
<%-- 方法1:这个报Property "0" not found on type ...错误 --%>
<c:forEach var="obj" items="${psAcctDeps}" varStatus="status">
${obj[status.index].custNo}
</c:forEach>
</td>
<%-- <td>${psAcctDeps.custNo}</td> 方法2:这个报For input string: "custNo"错误 --%>
</tr></table>
<%-- 方法1:这个报Property "0" not found on type ...错误 --%>
<%-- 方法1报这个错误是因为obj是psAcctDeps中的元素, obj[status.index]obj不是数组或list,就会报错--%>
<c:forEach var="obj" items="${psAcctDeps}" varStatus="status">
<tr>
<td align="center">${obj.属性名}</td>
</tr>
<%-- <td>${psAcctDeps.custNo}</td> 方法2:这个报For input string: "custNo"错误 --%>
<%-- 方法2报这个错误是因为psAcctDeps是list,${psAcctDeps[0].custNo}才行--%>
</c:forEach>
望采纳,谢谢