struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mervin Williams" <mwilli...@innovasolutions.net>
Subject FW: isEmpty() Method Not Working?
Date Mon, 03 Mar 2003 20:45:28 GMT
Every time my application encounters the ActionErrors isEmpty() message,
a Servlet Exception occurs.  I simply replaced the old call from
"errors.empty()" to "errors.isEmpty()".  If anyone has ideas as to
what's going on, please help!

Here is my code:
--------------------------------------
           try
           {
                if (stmt != null)
                {
                  stmt.close();
                }
                if (conn != null)
                {
                  conn.close();
                }
           }
           catch(Exception e)
           {
             target = "error";
             ActionErrors errors = new ActionErrors();
             errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError("errors.database.error", e.getMessage()));

             // Report any errors
              if(!errors.isEmpty())
              {
               saveErrors(req, errors);
              }
           }


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message