为什么此代码会产生错误“结束标签"(</c:when)?是“不平衡的"? [英] Why does this code generate the error "The end tag "</c:when" is unbalanced"?
本文介绍了为什么此代码会产生错误“结束标签"(</c:when)?是“不平衡的"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不明白为什么会收到错误消息:
I don't understand why I get the error:
The end tag "</c:when" is unbalanced
运行此代码时:
<c:choose>
<c:when test="${label == 'Apple'}">
<form:form modelAttribute="fruit" action="/fruit/${fruitId}" method="post">
<form:input path="fruitId" type="hidden" value="${fruitId}"/>
</c:when>
<c:when test="${label == 'Orange'}">
<form:form modelAttribute="fruit" action="/fruit/${fruitId}" method="post">
<form:input path="fruitId" type="hidden" value="${fruitId}"/>
</c:when>
</c:choose>
推荐答案
您有一个未封闭的<form:form>
标记.
You have an unclosed <form:form>
tag.
这篇关于为什么此代码会产生错误“结束标签"(</c:when)?是“不平衡的"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文