我使用C:設置和c:如果在JSP(我使用彈簧MVC 3)<C:設置和<C:如果在彈簧
<c:set var="myVar" value="${JavaClass.MY_KEY}"/>
<c:if test="${myVar == code}">
Do Somthing
</c:if>
但在這種情況下,C:若代碼是沒有得到執行。
在i得到(無C:組)
<c:if test="${'ABC' == code}">
Do Somthing
</c:if>
它workes。
誰能告訴我什麼,我做錯了
感謝
相關:http://stackoverflow.com/questions/3732608/how-to-reference-constants-in-el – BalusC