<!-- 外层循环 -->
					<c:forEach begin="1" end="${recommend.intCount}" varStatus="state">
						<tr>
							<td width="20%">
								推荐位置${state.count}:
							</td>
							<td width="80%">
								<!-- 标记 -->
								<c:set var="isDoing" value="0" />
								<!-- 内层循环 -->
								<c:forEach items="${recommend.recommendMediaSet}" var="recommendMedia">
									<c:if test="${recommendMedia.intSort == state.count}">
										<!-- 标记符合条件 -->
										<c:set var="isDoing" value="1" />
										<!-- 设置变量 -->
										<c:set var="strId" value="${recommendMedia.media.strId}" />
										<c:set var="strTitle" value="${recommendMedia.media.strTitle}" />
									</c:if>
								</c:forEach>
								<!-- 判断标记 -->
								<c:if test="${isDoing == 1}">
									<input type="hidden"  />
									<input type="text"  />
								</c:if>
								<c:if test="${isDoing == 0}">
									<input type="hidden"  />
									<input type="text"  />
								</c:if>
								<input type="button" value="清除" onclick="cleanMedia('sortID_${state.count}')" style="width: auto;" />
							</td>
						</tr>
					</c:forEach>

相关文章: