Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does this code generate the error "The end tag "</c:when" is unbalanced"?

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>
like image 246
Brian Avatar asked Dec 26 '11 01:12

Brian


1 Answers

You have an unclosed <form:form> tag.

like image 159
SLaks Avatar answered Sep 28 '22 11:09

SLaks