title: Why does this code generate the error "The end tag "</c:when" is unbalanced"?
body: <p>I don't understand why I get the error:</p>
  
  <pre><code>The end tag "&lt;/c:when" is unbalanced
  </code></pre>
  
  <p>when this code is run:</p>
  
  <pre><code>&lt;c:choose&gt;
      &lt;c:when test="${label == 'Apple'}"&gt;
          &lt;form:form modelAttribute="fruit" action="/fruit/${fruitId}" method="post"&gt;                 
          &lt;form:input path="fruitId" type="hidden" value="${fruitId}"/&gt;
      &lt;/c:when&gt;
      &lt;c:when test="${label == 'Orange'}"&gt;
          &lt;form:form modelAttribute="fruit" action="/fruit/${fruitId}" method="post"&gt;
          &lt;form:input path="fruitId" type="hidden" value="${fruitId}"/&gt;
      &lt;/c:when&gt;               
  &lt;/c:choose&gt;
  </code></pre>