【发布时间】:2014-05-01 11:55:13
【问题描述】:
我正在尝试关联这两个数组列表并打印..
<c:when test="${postitem.posttype.equals('text')}">
<h5>id="${postitem.postid}"</h5>
<pre> ${postitem.postdata} </pre>
<span>datetime="${postitem.posttime}</span>
<c:forEach items="${postitem.comment}" var="comment">
<span>comment="${comment}" </span>
</c:forEach>
<c:forEach items="${postitem.commenttime}" var="comment_time">
<span>comment_time="${comment_time}" </span>
</c:forEach>
</c:when>
我想打印带有“comment time”的“comment”,它们是两个不同数组列表的值,但是这段代码打印的是整个第一个数组列表,然后是第二个。
任何提示???!
【问题讨论】: