title: Struts2 change locale
body: <p>I'm wondering if it's possible to change the locale into an action, and not by an url parameter...</p>
  
  <p>In fact I have an authentication action, and regarding the user which was authenticated I want to switch to an appropriated locale.</p>
  
  <p>I tried : </p>
  
  <pre><code>session.put("WW_TRANS_I18N_LOCALE", "my_locale")
  </code></pre>
  
  <p>or </p>
  
  <pre><code>session.put("WW_TRANS_I18N_LOCALE", new Locale("my_locale"))
  </code></pre>
  
  <p>but still nothing... </p>
  
  <p>any idea ?</p>