学习是最好的投资!
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:
Backend code example:
JSP code:
Generated HTML source code:
Rendering: