所以我在jsp中有一个forEach:
<c:forEach var="columnName" items="${sprav.columnName}"> //the items are a list of strings so for each string
<th><c:if test="${columnName.startsWith('v_')}"><c:out value="${columnName}"></c:out></c:if></th>
</c:forEach>
现在我有了第二个列表:
<c:forEach var="valuesInRows" items="${sprav.valuesInRows}"> //items is a List of lists of strings so foreach list of strings
<tr>
<c:forEach var="valuesInRow" items="${valuesInRows}" varStatus="loop"> //So here is the same situation, items is a list of stings, so for each string
<td> <c:out value="${valuesInRow}"></c:out> //Here </td> </c:forEach>
如何在这里只输出与第一columnName forEach中选择的字符串相对应的那些位置的字符串?如何使用相同的索引?