title: how to use an if-statement in a jsp tag file
body: <p>I have this .tag file:</p>
  
  <pre><code>&lt;%@tag description="Displays reduced information for analysis jobs" pageEncoding="ISO-8859-1"%&gt;
  &lt;%@attribute name="job" required="true" type="redb.main.core.model.AnalysisJob"%&gt;
  
  &lt;div class="analysis-job-reduced" data-job-id="${job.id}"&gt;
  &lt;p&gt;&lt;span class="job-id"&gt;Job ${job.id}&lt;/span&gt;: &lt;span class="status"&gt;${job.status}&lt;/span&gt;&lt;/p&gt;
  &lt;p class="prio"&gt;Prio: ${job.prio}&lt;/p&gt;
  &lt;p class="executive"&gt;${job.executive.name}&lt;/p&gt;
  &lt;p class="waiting-for"&gt;Waiting for ${job.textWaitingFor}&lt;/p&gt;
  </code></pre>
  
  <p></p>
  
  <p>I want to display the variable "job.prio"-variable, just in the case "job.status" is equal "open". 
  That means, if "job.status" is other than "open", nothing will be displayed after "Prio: " </p>
  
  <p>I tried this, but it didn't work..</p>
  
  <pre><code>&lt;div class="analysis-job-reduced" data-job-id="${job.id}"&gt;
  &lt;p&gt;&lt;span class="job-id"&gt;Job ${job.id}&lt;/span&gt;: &lt;span class="status"&gt;${job.status}&lt;/span&gt;&lt;/p&gt;
  &lt;%-- &lt;p class="prio"&gt;Prio: ${job.prio}&lt;/p&gt; --%&gt;
  &lt;c:choose&gt;
      &lt;c:when test="${job.prio = 'open'}"&gt;
          &lt;p class="prio"&gt;Prio: ${job.prio}&lt;/p&gt;
      &lt;/c:when&gt;
      &lt;c:otherwise&gt;
          &lt;p class="prio"&gt;Prio: Job is not open anymore&lt;/p&gt;
      &lt;/c:otherwise&gt;
  &lt;/c:choose&gt;
  &lt;p class="executive"&gt;${job.executive.name}&lt;/p&gt;
  &lt;p class="waiting-for"&gt;Waiting for ${job.textWaitingFor}&lt;/p&gt;
  </code></pre>
  
  <p></p>
  
  <p>Thank you so much for your help!</p>