title: <logic:messagesPresent> tag in Struts1 not looping through multiple errors in Action Messages
body: <p>I have a field in a bean that is failing 2 validations, as such 2 messages are being inserted in <code>ActionMessages</code> with the following command:</p>
  <pre><code>validationErrors.add(&quot;field1&quot;, new ActionMessage(&quot;Phone number is greater than 10 digits&quot;, false));
  validationErrors.add(&quot;field1&quot;, new ActionMessage(&quot;Phone number has invalid characters&quot;, false));
  </code></pre>
  <p>Although I see the errors in the <code>ActionMessages</code> object (by setting a breakpoint in the debugger), only the first one gets displayed in my JSP, where I have:</p>
  <pre><code>&lt;logic:messagesPresent message=&quot;true&quot;&gt;
      &lt;html:messages id=&quot;message&quot; property=&quot;field1&quot; message=&quot;true&quot;&gt;
          &lt;logic:present name=&quot;message&quot;&gt;
              &lt;c:out value=&quot;${message}&quot;/&gt;
          &lt;/logic:present&gt;
      &lt;/html:messages&gt;
  &lt;/logic:messagesPresent&gt;
  </code></pre>
  <p>Why is only the first message displayed, when <code>&lt;html:messages&gt;</code> should loop through all the messages where the property is <code>&quot;field1&quot;</code>?</p>