How to compare values in jsp using JSP Expression Language (EL)
<p>I have this check in my jsp:</p>

<pre><code>&lt;logic:equal name="${product.status}" value="${ProductStatuses.SOLD}"&gt; 
   // do something
&lt;/logic:equal&gt;

&lt;logic:equal name="${product.status}" value="${ProductStatuses.IN_STOCK}"&gt; 
   // do something else
&lt;/logic:equal&gt;
</code></pre>

<p>Both checks return true, so obviously something is not OK.
The product's <code>status</code> is of type <code>int</code> and here is my ProductStatuses class which is automatically generated by AndroMDA and hence is in a .jar:</p>

<pre><code>public interface ProductStatuses {
    /**
     * @author andromda
     */
    int SOLD = 1;

    /**
     * @author andromda
     */
    int IN_STOCK = 2;

    /**
     * @author andromda
     */
    int N_A = 0;
}
</code></pre>

<p>What can be wrong?</p>