According to s2-026:
Support for expression using top will be dropped in upcoming Struts version 2.5!
We used the top
object in lots of JSP pages as below (which shows a list of currencyTypes
and look up the name from Struts messages):
<s:select name = "selectedCurrencyType"
list = "currencyTypes"
listKey = "top"
listValue = "%{getText('acc.currencyType.'+top)}" />
It currently works with struts 2.3.24.1
but according to above comment, will above select box works for 2.5
, or we will not have the top reference any more?!
If this is true, please let me know how should we fix above s:select
?!