【发布时间】:2013-12-07 01:57:06
【问题描述】:
<spring:message code="footer.copyriteText" arguments="NEEDS TO BE DYNAMIC" htmlEscape="false"/>
我需要将NEEDS TO BE DYNAMIC 替换为Calendar.getInstance().get(Calendar.YEAR)。如何使用 EL 实现这一点?
【问题讨论】:
-
所以你想让我每年为版权年更改它?
-
你能解释更多吗? Calendar.getInstance().get(Calendar.YEAR) 是我实际指的。
-
您看到了什么问题?你推荐的解决方案是什么?
-
我的问题不在于 Calendar.YEAR 的预期结果,而是如何使用 java 类中的“动态”值在 Spring 中使用
标签: spring jsp spring-mvc el