title: Action errors are not shown on the JSP
body: <p>I have tried adding action errors in the Action class and printing them on the JSP page.</p>
  
  <p>When an exception occurred, it is going into the catch block and it is printing "Error in inserting the Exception, Contact the Admin", in console. </p>
  
  <p>In the catch block, I've added it with <code>addActionError()</code>, and I've tried printing it in jsp page... 
  <br><strong>but the message is not shown in jsp page</strong>. </p>
  
  <p>What I may be missing or doing wrong ?</p>
  
  <p>Struts mapping:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;action name="dataUpdate" class="foo.bar.myAction" method="updation"&gt;
      &lt;result name="success" type="redirectAction"&gt;
          ../Aggregator/redirectToDataUpdate
      &lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>Action class:</p>
  
  <pre><code>public String updation() throws JiffieTransactionException{
      try {
          // do stuff...
      } catch (NumberFormatException e) {
          addActionError("Error in inserting the Exception, Contact the Admin");
          System.out.println("Error in inserting the Exception, Contact the Admin");
          e.printStackTrace();
      }
      return SUCCESS;
  }
  </code></pre>
  
  <p>JSP code for printing action errors:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;s:if test="hasActionErrors()"&gt;
      &lt;br&gt;&lt;/br&gt;
      &lt;div class="errors"&gt;
          &lt;font color="red"&gt;
              &lt;s:actionerror/&gt;
          &lt;/font&gt;
      &lt;/div&gt;
  &lt;/s:if&gt;
  </code></pre>