title: Jsp ActionErrors Struts
body: <p>Good Afternoon in my timezone.</p>
  
  <p>I am finalizing a Java Web project to a company, and i need to write errors detected in the actionForm validation method.
  Inside the validate method i am adding errors that way (snippet of code):</p>
  
  <pre><code>ActionErrors ae = new ActionErrors();
  ae.add("dummy",new ActionMessage("message"));
  ...java...code
   ae.add("dummy",new ActionMessage("message"));
  </code></pre>
  
  <p>In my jsp what i want to do is iterate over all the errors found it , and print them.
  i do not want to put all the errors by the following way :</p>
  
  <pre><code>&lt;html:errors property="prop1"/&gt;
  &lt;html...code/&gt;
  &lt;html:errors property="prop2"/&gt;
  </code></pre>
  
  <p>What i want to do is something like this (psedo-code):</p>
  
  <pre><code>if(there is errors)
     for(erros.hasNext)
        &lt;td&gt;errors.next()&lt;/td&gt;
  </code></pre>
  
  <p>I can use normal scriplets if i have to.
  Can any body help me hear ?</p>
  
  <p>Thanks in advance
  Best regards</p>