code: protected void storeException( HttpServletRequest request, String property, ActionMessage error,
                                     ActionForward forward, String scope )
      {
          ActionMessages errors = new ActionMessages();
          errors.add( property, error );
  
          if ( "request".equals( scope ) )
          {
              request.setAttribute( Globals.ERROR_KEY, errors );
          }
          else
          {
              request.getSession().setAttribute( Globals.ERROR_KEY, errors );
          }
      }
docs: support Struts 1.1 anymore (or when Struts 1.1 support goes into a legacy version).