title: How to access ActionErrors programmatically?
body: <p>I know how to create ActionErrors, add some messages and display the messages in the JSP page. 
  I think ActionError is like a list of error message. Here is the method to threat error that my system uses:</p>
  
  <h2>My Action</h2>
  
  <pre class="lang-xml prettyprint-override"><code>ActionErrors errors = new ActionErrors();
  errors.add("customerId", new ActionError("error.customerId.required"));
  this.saveErrors(request, errors);
  </code></pre>
  
  <h2>my current JSP</h2>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;html:errors /&gt;
  </code></pre>
  
  <p>suppose i want to create ArrayList (in Java) of the error message in the JSP page. How to do this <i><b>without change anything in in my Action</b></i>.</p>
  
  <h2>my proposed JSP</h2>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;%
      ArrayList&lt;String&gt; errMessage = new ArrayList&lt;String&gt;();
      //foreach (ActionErrors.message as message){
      //    errMessage.add(message);
      //}
  %&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>regards</p>