根据3年前的这篇文章,在jstl标记中显示spring消息的唯一方法是将其包装在<c:set var="someVar">
“有效”的a中,但这似乎远非理想。
快进3年了,这仍然是解决此问题的唯一方法吗?
这是我的代码
可行,但不是“理想”
<c:set var="closeMessage">
<spring:message code='lman.ilr.closeItemDetail'/>
</c:set>
<dsg:sidePanelContent closePanelText="${closeMessage}">
不起作用,返回一个字符串 <spring:message code='lman.ilr.closeItemDetail'/>
<dsg:sidePanelContent closePanelText="<spring:message code='lman.ilr.closeItemDetail'/>">
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句