title: JSTL test and HTML input
body: <p>I have something like in my JSP page :</p>
  
  <pre><code>&lt;% if(id!=null) { %&gt;
       &lt;input type="hidden" name="id" value="&lt;%= id %&gt;" /&gt;
  &lt;%
  }
  %&gt;
  </code></pre>
  
  <p>When I want to edit a user id should be non null, then I want that input in my HTML.
  However, when I want to add a user id should be null, and so I don't what that input.</p>
  
  <p>It works great with that code. But I would like to use JSTL i tried using c:if and c:when :</p>
  
  <pre><code>&lt;c:choose&gt;
      &lt;c:when test="${id != null }"&gt;
          &lt;input type="hidden" name="id" value="&lt;%=id%&gt;" /&gt;
      &lt;/c:when&gt;
      &lt;c:otherwise&gt;
          &lt;br/&gt;
      &lt;/c:otherwise&gt;
  &lt;/c:choose&gt;
  </code></pre>
  
  <p>The problem is that this code displays <code>&lt;br /&gt;</code> when <code>id</code> is null or non null (add and edit) ... And I don't see why it doesn't work.</p>
  
  <p>Thanks for your help,</p>
  
  <p>S</p>