【发布时间】:2016-05-18 03:04:49
【问题描述】:
jsp代码:
<tbody>
<c:forEach items="${noteList}" var="note" varStatus="count">
<tr id="<c:out value="${count.count}"/>">
<td id="noteType${count.count}">
Transaction Note
</td>
<td id="noteEnteredDate${count.count}">${note.formattedEnteredOn}</td>
<td id="noteEnteredBy${count.count}">${note.formattedUserInitials}</td>
<td id="noteContent${count.count}">${note.noteText}</td>
</tr>
</c:forEach>
</tbody>
view source code for above screen shot
不生成 tr id 会有什么问题
【问题讨论】:
-
这里似乎有些问题
<tr id="<c:out value="${count.count}"/>">。这一行有两个结束。