title: In the Struts , How 'replacement values for message' in ActionMessage can be picked from ResourceBundle
body: <p>What I did to achieve it.</p>
  <p><em><strong>Action File:</strong></em></p>
  <pre><code>ResourceBundle rb = ResourceBundle.getBundle(&quot;com.....ApplicationResources&quot;);               
  String title=rb.getString(&quot;entity.member&quot;);
  messages.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage(&quot;message.save&quot;,title ));
  </code></pre>
  <p><em><strong>Application Resource :</strong></em></p>
  <pre><code>entity.member=Member
  entity.Locker=Locker
  message.save={0} saved successfully
  </code></pre>
  <p><em><strong>What I want is:</strong></em></p>
  <p>There is a short route to replace 'replacement values for message' with hard coded word 'Member'.
  like</p>
  <pre><code>messages.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage(&quot;message.save&quot;,&quot;Member&quot; ));
  </code></pre>
  <p>But</p>
  <pre><code>1. MessageResources resources = getServlet().getInternal().getMessageResources(&quot;com....ApplicationResources&quot;)
  
  2. ResourceBundle rb = ResourceBundle.getBundle(&quot;com.....ApplicationResources&quot;);
  
  3. String title = getResources(request).getMessage(getLocale(request), &quot;entity.member&quot;);
  
  messages.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage(&quot;message.save&quot;,title ));
  </code></pre>
  <p>Above three are the long routes to replace 'replacement values for message' with respective language wording.</p>
  <p>Looking for short route like I had for hard coding.</p>