我在jsp中得到一个列表,并且使用for循环一次将列表存储在业务对象中。我如何使用jstl获得相同的内容?
<%
for (int i = 0; i < clList.size(); i++) {
com.ssk.smjh.business.Data cl = (com.ssk.smjh.business.Data) clList.get(i);
String fc = cl.getFcNo();
while (fc.length() < 6) {
fc = fc + " ";
}
com.ssk.smjh.business.HSElement hs = cl.getFindercode().getHsElement();
%>
<tr>
<td>
<${cl.heid}>
</td>
<td>
<c:out value="<%=fc.substring(0, 4)%>"></c:out> / <c:out value="<%=fc.substring(4)%>"></c:out>
</td>
<td>
<c:out value="<%=hs.getHsCode()%>"></c:out> / <c:out value="<%=hs.getHsCodeExt()%>"></c:out></td>
</tr>
<%
}
%>