In my application, I have to display the content based on the locale user chosen in the configuration page. I am not using browser default locale.
when using <s:text>
, it always use the default resource file.
In Struts1, I have used the below code to set default locale in my filter
session.setAttribute("org.apache.struts.action.LOCALE",locale);
How to set the user chosen locale dynamically in Struts2 ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…