title: Displaying struts validations message
body: <p>I want to display errors detected in an action class, I use:</p>
  
  <pre><code>errors.add(ActionErrors.GLOBAL_MESSAGE,
    new ActionMessage("some_string_in_properties_file"));`
  </code></pre>
  
  <p>and it works fine. However, I have written some generic error messages, and I would like to reuse them, so I am trying to do this:</p>
  
  <pre><code>errors.add(ActionErrors.GLOBAL_MESSAGE,
    new ActionMessage("string1_in_properties_file", "string2_in_properties_file"));
  </code></pre>
  
  <p>where string1 = <code>&lt;li&gt;{0} is required.&lt;/li&gt;</code>.</p>
  
  <p>Then it is displaying <code>string2 is required</code>. It is not replacing string2 with its value.</p>
  
  <p>I even tried</p>
  
  <pre><code>errors.add(ActionErrors.GLOBAL_MESSAGE,
    new ActionMessage("string1_in_properties_file",
    new ActionMessage("string2_in_properties_file")));
  </code></pre>
  
  <p>then it is displaying <code>string2[] is required</code>. It is not replacing string2.</p>
  
  <p>I know it can be done by hard-coding the value, but is there any other way? </p>