I have been looking up this information for a while, but does not seem like there is much online.
To make it simple, how do we access the ActionContext through the <s:property/> tag?
Basically I want to get the com.opensymphony.xwork2.ActionContext.locale (current locale)
I tried all these, but none seems to work
<s:property value="#com.opensymphony.xwork2.ActionContext.locale"/>
<s:property value="${#com.opensymphony.xwork2.ActionContext.locale}"/>
<s:property value="%{#com.opensymphony.xwork2.ActionContext.locale}"/>
and more combinations of these.
Thanks
Have you tried
locale.toString()?Edit
As you want the value from
ActionContextput this in youraction:And then in your jsp you can access to the
localeattribute with<s:property>.I hope it helps.