title: Correct syntax to compare values in JSTL <c:if test="${values.type}=='object'">
body: <p>I have an <code>if</code> statement that I am trying to perform with JSTL.</p>
  
  <p>My code is below (the variables values is an ArrayList that contains a user defined object and type is a private property of that object, with public getter/setter methods):</p>
  
  <pre><code>&lt;c:forEach items="${list}" var="values"&gt;
      &lt;c:if test="${values.type}=='object'"&gt;
          &lt;!-- code here --&gt;
      &lt;/c:if&gt;
  &lt;/c:forEeach&gt;
  </code></pre>
  
  <p>What would be the correct syntax of the part within the <code>test</code> attribute. The docs don't really help with that part <a href="http://download.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/index.html" rel="nofollow noreferrer">http://download.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/index.html</a></p>
  
  <p>Thanks.</p>