Tuesday, 24 May 2016

How to get current locale in JSP page

locale: <s:property value='locale.toString()'/>

<s:if test='locale.toString() == "en"'>
    . . .
</s:if>


Output is "en", or "ru_RU", or like this.

No comments:

Post a Comment