c:forEach begin ="0" end ="4" var ="i" c:set var ="ans" value ="${list[i]}" / tr td width ="15%" 答案${i+1 } font color ="red" * / font : / td td width ="85%" input type ="text" value ="c:if test=" ${fn:length(list) = i+1}"${ans.answer
<c:forEach begin="0" end="4" var="i"> <c:set var="ans" value="${list[i]}" /> <tr> <td width="15%">答案${i+1 }<font color="red">*</font>:</td> <td width="85%"> <input type="text" value="<c:if test="${fn:length(list) >= i+1}">${ans.answer }</c:if>" name="answers"> </td> </tr> </c:forEach>