dgraham     2003/08/16 11:35:41

  Modified:    src/share/org/apache/struts/taglib TagUtils.java
  Log:
  Replaced ActionError with ActionMessage.
  
  Revision  Changes    Path
  1.23      +6 -7      jakarta-struts/src/share/org/apache/struts/taglib/TagUtils.java
  
  Index: TagUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/TagUtils.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- TagUtils.java     2 Aug 2003 22:19:37 -0000       1.22
  +++ TagUtils.java     16 Aug 2003 18:35:41 -0000      1.23
  @@ -83,7 +83,6 @@
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   import org.apache.struts.Globals;
  -import org.apache.struts.action.ActionError;
   import org.apache.struts.action.ActionErrors;
   import org.apache.struts.action.ActionMessage;
   import org.apache.struts.action.ActionMessages;
  @@ -645,12 +644,12 @@
               } else if (value instanceof String) {
                   errors.add(
                       ActionErrors.GLOBAL_ERROR,
  -                    new ActionError((String) value));
  +                    new ActionMessage((String) value));
   
               } else if (value instanceof String[]) {
                   String keys[] = (String[]) value;
                   for (int i = 0; i < keys.length; i++) {
  -                    errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(keys[i]));
  +                    errors.add(ActionErrors.GLOBAL_ERROR, new 
ActionMessage(keys[i]));
                   }
   
               } else if (value instanceof ActionErrors) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to