title: <c:set and <c:if in spring
body: <p>I am using c:set and c:if in jsp (i am using Spring MVC 3)</p>
  
  <pre><code>&lt;c:set var="myVar" value="${JavaClass.MY_KEY}"/&gt;  
  &lt;c:if test="${myVar == code}"&gt;  
      Do Somthing  
  &lt;/c:if&gt;  
  </code></pre>
  
  <p>but in this case c:if code is not getting executed.</p>
  
  <p>When i give (without c:set)</p>
  
  <pre><code>&lt;c:if test="${'ABC' == code}"&gt;  
      Do Somthing  
  &lt;/c:if&gt;     
  </code></pre>
  
  <p>it workes. </p>
  
  <p>Can anyone tell me what i am doing wrong</p>
  
  <p>Thanks</p>