title: struts 2 internationalization not working
body: <p>I am developing struts 2 and spring web application which suppoerts two languages: english and hindi.
  I have configured internationalization but it is not working i.e. when I change the encoding from browser, the text does not change.
  I have tried to even change the locale programitically but it still does not work</p>
  
  <p>RegisterAction.java</p>
  
  <pre><code>    public class RegisterAction extends ActionSupport {
  
   public String execute(){
    return "SUCCESS";
   }
  
   public Locale getLocale(){
    return new Locale("hi");
   }
      }
  </code></pre>
  
  <p>struts.xml</p>
  
  <pre><code>&lt;action name="register" class="com.medics.action.RegisterAction"&gt;
      &lt;result name="SUCCESS"&gt;/Register.jsp&lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>Register.jsp</p>
  
  <pre><code>&lt;%@ taglib prefix="s" uri="/struts-tags"  %&gt;
  &lt;h4&gt;&lt;s:text name="Registration"/&gt;&lt;/h4&gt;
  </code></pre>
  
  <p>global-messages.properties</p>
  
  <pre><code>hello=hello
  Registration=Registration
  </code></pre>
  
  <p>global-messages_hi.properties</p>
  
  <pre><code>Registration=\\u2354\\u2379\\u327\\u2367\\u2344\\u2381
  </code></pre>
  
  <p>here is the snapshot of the project</p>
  
  <p>struts.xml and the two messages files are in the root of the classpath</p>