Сравнение дат с помощью распорок 2 в JSP

Я хочу сравнить две даты, используяStruts2

One is returned from the backend  (test.currentDate) == "2012-11-15)"
The other one I just set "2014-10-19"

Как я могу сравнить две даты?

Мой код выглядит следующим образом:

<s:set name="currentDate"  value="%{test.currentDate}"/>
<s:set name="futureDate" value="2014-10-19"/>
<s:if test="%{#currentDate.before(#futureDate)}">
    <s:text name="test"/> <s:date name="test.currentDate" format="MM/yy"/> 
</s:if>
<s:else>
    <s:text name="test2"/>
</s:else>

Ответы на вопрос(2)

Ваш ответ на вопрос