ringa_lee2017-04-18 10:46:04
Backend code example:
JSP code:
<!--遍历 answers-->
<c:forEach items="${answers}" var="answer" varStatus="status">
<!-- 遍历 map -->
<c:forEach items="${answer}" var="entry">
<input name="answer_${status.count}" type="radio" />${entry.key}.${entry.value}
</c:forEach>
<br/><br/>
</c:forEach>
Generated HTML source code:
Rendering: