2
好我有一個名爲FiscalMonth枚舉:使用JSTL訪問枚舉值?
Oct(1),
Nov(2),
Dec(3),
Jan(4),
Feb(5),
Mar(6),
Apr(7),
May(8),
Jun(9),
Jul(10),
Aug(11),
Sep(12);
我需要訪問#的在JSTL ...右now..im只運用字符串作爲這樣..
<c:forEach var="month" items="${monthList}" end="11">
<c:choose>
<c:when test="${fn:substring(month,0,1) == 'O'}">
"${fn:substring(month,0,1)}${fn:substring(year,2,4)}", "tooltext": "${month} ${year}}"});
</c:when>
<c:otherwise>
"${fn:substring(month,0,1)}", "tooltext": "${month} "});
</c:otherwise>
</c:choose>
我該如何獲取枚舉#的?謝謝