title: How to add AND/ OR operator in JSTL IF condition
body: <p>I am very new to JSTL. </p>
  
  <p>Now I have created an HashMap and rendered it in the jsp page .</p>
  
  <p>This is how I Have crated the HashMap</p>
  
  <p>In Application Level :</p>
  
  <pre><code>public HashMap&lt;String, String&gt; uploadSmelter(){
  
  HashMap&lt;String, String&gt; progress = new HashMap&lt;String, String&gt;();
  
  try {
          CompanyEntity instanceNew = (CompanyEntity) sessionFactory.getCurrentSession()
                  .createCriteria(CompanyEntity.class)
                  .add(Restrictions.eq("name", smObj.getName()))
                  .add(Restrictions.eq("metal",  MetalEnum.valueOf(metal))).uniqueResult();
          if (instanceNew != null){
              //logger.info();
              progress.put("error", Integer.toString(1));
              progress.put("errorMsg", "Company : " +smObj.getName() + " for Metal: " + metal + " exists." );
  
          }
       }
   return progress
  }
  </code></pre>
  
  <p>In Controller Level :</p>
  
  <pre><code>HashMap&lt;String, String&gt; result = new HashMap&lt;String, String&gt;();
  result.put("error", "0");        
  result.put("update", "0");
  result.put("create", "0");
  HashMap&lt;String, String&gt; progress = new HashMap&lt;String, String&gt;();
  int number = 0;
  while (rowIterator.hasNext()) 
    {
      progress= companyFacade.uploadSmelter(); // implemented in application level uploadSmelter method
  
  if(progress.get("errorMsg")!=null){   
   result.put(Integer.toString(number),progress.get("errorMsg"));
  }
   number=number+1 ;
  }
  </code></pre>
  
  <p>Now finally if I print it in the jsp page ,  i am getting  </p>
  
  <pre><code>{3=Company: ABC COMPANY  for Metal: A Exists, update=0, 2=Company: ABC COMPANY TIN for Metal TIN Exists, 1=Company: ABC COMPANY G for Metal METAL_TANTALUM Exists, 0=Company: ABC COMPANY L for Metal METAL_TANTALUM Exists, error=4, fileName=data.1407219942830.xls, number=4, create=0}
  </code></pre>
  
  <p>Now I want to run a foreach loop in jsp page that should print filtered value from the Hashmap.</p>
  
  <p>So I have added those condition in JSTL if statement . But seems to be it is not supporting the condition statement and I am not getting any output .</p>
  
  <pre><code>&lt;c:forEach items="${result}" var="item"&gt;
    &lt;c:if test="${item.key} !='update' &amp;&amp; ${item.key} !='error' &amp;&amp; ${item.key} !='create' &amp;&amp; ${item.key} !='number' &amp;&amp; ${item.key} !='fileName'}"  &gt;                
       &lt;div class="attributeField"&gt;Line Number &lt;c:out value="${item.key}" /&gt; &amp;nbsp;&lt;spring:message message="${item.value}"/&gt;&lt;/div&gt; 
    &lt;/c:if&gt;
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>So what the mistake I am doing ? Thanks for help in Advance. </p>