I don't understand why I get the error:
The end tag "</c:when" is unbalanced
when this code is run:
<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>
You have an unclosed <form:form>
tag.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With