Reputation: 545
I want to use current year value in properties file, it should be send to <s:text>
tag as a parameter using <s:param>
tag with new Date().getFullYear()
value.
Upvotes: 2
Views: 1412
Reputation: 11
I have tried and the right syntax is:
<s:property value="%{new java.util.Date().fullYear}" />
Upvotes: 1