code: protected void saveActionErrors( ActionMessages errors )
      {
          // Remove any messages attribute if none are required
          if ( errors == null || errors.isEmpty() )
          {
              getRequest().removeAttribute( Globals.ERROR_KEY );
          }
          else
          {
              getRequest().setAttribute( Globals.ERROR_KEY, errors );
          }
      }
docs: Save the specified messages keys into the request for use by the &lt;netui:error&gt; or &lt;netui:errors&gt; tags.
  
  @param errors the ActionMessages to save in the request.