title: Date comparision in struts2 using OGNL
body: <p>enter code hereIn my JSP I have display a hyperlink depending upon the date field if it falls between certain range. I am using struts 2 and ONGL</p>
  
  <pre><code>&lt;s:set name="cDate" value="accDate"/&gt;
  &lt;s:if test="%{#cDate gt '4/4/11' &amp;&amp;  #cDate gt  '4/4/12}"&gt;                                                           
  &lt;td class="viewCellLast"&gt;&lt;s:url id="editURL" action="editActivities"&gt;
  &lt;s:param name="id" value="%{id}"&gt;&lt;/s:param&gt;
   &lt;/s:url&gt; &lt;s:a href="%{editURL}" onclick="return nanCompany();" &gt;Edit&lt;/s:a&gt;&lt;/td&gt;
   &lt;/s:if&gt;
  </code></pre>
  
  <p>its failing, can anybody suggest the me how this can achieved. </p>
  
  <p>thanks
  smitha.</p>