に私はCを使用していた場合、JSPに(iはスプリングMVC 3を使用している)場合<C:Cを設定し、<:設定とC:春
<c:set var="myVar" value="${JavaClass.MY_KEY}"/>
<c:if test="${myVar == code}">
Do Somthing
</c:if>
が、この場合C内を:コードがある場合実行されません。それはworkes
<c:if test="${'ABC' == code}">
Do Somthing
</c:if>
:
私が与える
(セットCなし)。誰もが感謝
関連:http://stackoverflow.com/questions/3732608/how-to-reference-constants-in-el – BalusC