title: How to test if a string contains the given value in EL?
body: <p>I have a list of String and i set it into a session:</p>
  
  <pre><code> session.setAttribute("datas", result.getBody().getDatas());
  </code></pre>
  
  <p>Then i want to check in a JSP, if in the datas attribute doesn't contained the word "apple" for example. If this doesn't contained, then print a message doesn't contained. Initially i tried to do something like this:</p>
  
  <pre><code>   &lt;c:forEach items="${datas}" var="data"&gt;
        &lt;c:if test="${data!='apple'}"&gt;
            &lt;p&gt; Doesn't contained&lt;/p&gt;
        &lt;/c:if&gt;
     &lt;c:for&gt;          
  </code></pre>
  
  <p>But the aforementioned code, in case that the session contain the following values:</p>
  
  <p>Apple
  Banana
  Lemon</p>
  
  <p>Prints two times the message "Doesn't contained". I know that this is normal but how can i treat this in order to make what i want?</p>