title: Use of IF condition in JSP
body: <p>I have this line</p>
  
  <pre><code>&lt;td&gt;&lt;c:out value="${row.file_name}"/&gt;&lt;/td&gt;
  </code></pre>
  
  <p>file_name is a column name from the mysql database table.
  I want to check if file_name has some value,so I want to use the <code>IF condition</code>,but how do I pass <code>row.file_name</code>?
  something like <code>if(row.file_name!=null){}</code></p>
  
  <p><strong>UPDATE</strong></p>
  
  <pre><code>&lt;td&gt;&lt;c:out value="${row.file_name}"/&gt;&lt;br&gt;
  &lt;c:choose&gt;
      &lt;c:when test="${row.file_name == null}"&gt;
           Null
      &lt;/c:when&gt;
      &lt;c:otherwise&gt;
         &lt;a href="downloadFileServlet?id=${row.id}"&gt;Download&lt;/a&gt;&lt;/td&gt;
      &lt;/c:otherwise&gt;
  &lt;/c:choose&gt;
  </code></pre>
  
  <p>In this case only the 2nd condition is executed even though the file_name is empty</p>