其他分享
首页 > 其他分享> > 集合的一个小发现

集合的一个小发现

作者:互联网

<c:forEach items="${sessionScope.singleProblems}" var="singleProblem" varStatus="statu">
<h4>${statu.count}.${singleProblem.title}</h4>
<c:if test="${user.roleId == 2}">
(正确答案是${singleProblem.answer})
</c:if>
<table class="table table-striped table-bordered">
<tr>
<td>A:<label><input type="radio" name="singleProblem_Answer_${statu.count}" ${requestScope.StudentSingleProblemAnswer[statu.index].userAnswer eq 'A' ? 'checked' : 'disabled'} >${singleProblem.answerA}</label></td>

<td>B:<label><input type="radio" name="singleProblem_Answer_${statu.count}" ${StudentSingleProblemAnswer[statu.index].userAnswer eq 'B' ? 'checked' : 'disabled'}>${singleProblem.answerB}</label></td>
</tr>
<tr>
<td>C:<label><input type="radio" name="singleProblem_Answer_${statu.count}" ${StudentSingleProblemAnswer[statu.index].userAnswer eq 'C' ? 'checked' : 'disabled'}>${singleProblem.answerC}</label></td>
<td>D;<label><input type="radio" name="singleProblem_Answer_${statu.count}" ${StudentSingleProblemAnswer[statu.index].userAnswer eq 'D' ? 'checked' : 'disabled'}>${singleProblem.answerD}</label></td>
</table>
</c:forEach>

标签:count,发现,statu,singleProblem,title,一个,answer,集合,answerD
来源: https://www.cnblogs.com/mm163/p/10445297.html