【发布时间】:2013-06-06 13:20:55
【问题描述】:
<jsp:element name="input">
<jsp:attribute name="type">radio</jsp:attribute>
<jsp:attribute name="id">${status.index}${loop.index}</jsp:attribute>
<jsp:attribute name="name">skillLevel[${status.index}].skillLevelId</jsp:attribute>
<jsp:attribute name="value">${4 - loop.index}</jsp:attribute>
<c:if test = "${(4 - loop.index) == skillLevel.getSkillLevelId()}">
<jsp:attribute name="checked">checked</jsp:attribute>
</c:if>
</jsp:element>
显示 c:if 标签不能在 jsp:element 标签内的错误。我只是想根据测试条件为“input”元素添加“checked”属性。
【问题讨论】:
-
你看过this的问题吗?
-
@radimpe 是的..我也这样做了。