【发布时间】:2017-12-29 12:47:20
【问题描述】:
当有人试图改变他/她的状态时,我想从 jsp 文件中删除当前状态。我的代码运行良好。 我添加了 c:if 然后我开始收到此错误。 请纠正我哪里出错了。
</c:when><c:otherwise>
<tr>
<td class="label"><bean:message key="changeStatus.new"/></td>
<td>
<html:select property="memberStatus">
<html:option value=""><bean:message key="global.select.empty" /></html:option>
<c:forEach var="status" items="${memberStatuses}">
<html:option value="${status}"><bean:message key="changeStatus.${status}"/></html:option>
<c:if test="${status == member.status}" <html:option value="${status}"><bean:message key="changeStatus.${status}"/></html:option>
</c:if>
</c:forEach>
</html:select>
</td>
</tr>
</c:otherwise></c:choose>
【问题讨论】:
-
尝试在此处添加
>关闭标签<c:if test="${status == member.status}"。 -
知道了。谢谢@Gurkan
标签: jsp