org.apache.jasper.jaspereException:jsp未终止的c:if标记

org.apache.jasper.jaspereException:jsp未终止的c:if标记,jsp,Jsp,当某人试图更改其状态时,我想从jsp文件中删除当前状态。我的代码运行良好。 我已经添加了c:if,然后我开始得到这个错误。 请纠正我哪里出错了 </c:when><c:otherwise> <tr> <td class="label"><bean:message key="changeStatus.new"/></td>

当某人试图更改其状态时,我想从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>
jsp未终止的c:if标记

如果忽略添加关闭标记,则会出现问题。所以你需要贴上标签,即c:if-To的>标志


尝试添加>关闭标签,明白了。谢谢@Gurkan
<c:if test="${status == member.status}" > <html:option ...>
                                        ^
                                       Here