[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-dev
Subject:    cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/form ErrorsTag.java
From:       craigmcc () locus ! apache ! org
Date:       2000-12-30 20:47:32
[Download RAW message or body]

craigmcc    00/12/30 12:47:31

  Modified:    src/share/org/apache/struts/action Action.java
               src/share/org/apache/struts/taglib/form ErrorsTag.java
  Log:
  Documentation updates to reflect the switch to the new
  org.apache.struts.action.ActionErrors object for collecting error
  messages.
  
  Submitted by:	Matthias Kerkhoff <make@BESToffers.de>
  
  Revision  Changes    Path
  1.13      +7 -8      jakarta-struts/src/share/org/apache/struts/action/Action.java
  
  Index: Action.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/Action.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Action.java	2000/12/27 04:50:16	1.12
  +++ Action.java	2000/12/30 20:47:30	1.13
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/Action.java,v \
                1.12 2000/12/27 04:50:16 craigmcc Exp $
  - * $Revision: 1.12 $
  - * $Date: 2000/12/27 04:50:16 $
  + * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/Action.java,v \
1.13 2000/12/30 20:47:30 craigmcc Exp $  + * $Revision: 1.13 $
  + * $Date: 2000/12/30 20:47:30 $
    *
    * ====================================================================
    *
  @@ -105,7 +105,7 @@
    * by this Action.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.12 $ $Date: 2000/12/27 04:50:16 $
  + * @version $Revision: 1.13 $ $Date: 2000/12/30 20:47:30 $
    */
   
   public class Action {
  @@ -126,10 +126,9 @@
   
       /**
        * The request attribute key under which your action should store an error
  -     * messages, if you are using the corresponding custom tag library elements.
  -     * The stored data type should be a String array of individual errors.  If
  -     * this request attribute is missing, or it is a zero-length array, the error
  -     * tag will assume that no problems need to be reported.
  +     * messages, if you are using the corresponding custom tag library
  +     * elements.  The stored data should be an object of type
  +     * <code>org.apache.struts.action.ActionErrors</code>.
        */
       public static final String ERROR_KEY =
         "org.apache.struts.action.ERROR";
  
  
  
  1.2       +7 -6      \
jakarta-struts/src/share/org/apache/struts/taglib/form/ErrorsTag.java  
  Index: ErrorsTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/form/ErrorsTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ErrorsTag.java	2000/11/04 00:46:30	1.1
  +++ ErrorsTag.java	2000/12/30 20:47:31	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/form/ErrorsTag.java,v \
                1.1 2000/11/04 00:46:30 craigmcc Exp $
  - * $Revision: 1.1 $
  - * $Date: 2000/11/04 00:46:30 $
  + * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/form/ErrorsTag.java,v \
1.2 2000/12/30 20:47:31 craigmcc Exp $  + * $Revision: 1.2 $
  + * $Date: 2000/12/30 20:47:31 $
    *
    * ====================================================================
    *
  @@ -81,8 +81,9 @@
   /**
    * Custom tag that renders error messages if an appropriate request attribute
    * has been created.  The tag looks for a request attribute with a reserved
  - * key, and assumes that it is either a String, or a String array, containing
  - * message keys to be looked up in the application's MessageResources.
  + * key, and assumes that it is either a String, a String array, containing
  + * message keys to be looked up in the application's MessageResources, or
  + * an object of type <code>org.apache.struts.action.ActionErrors</code>.
    * <p>
    * The following optional message keys will be utilized if corresponding
    * messages exist for them in the application resources:
  @@ -95,7 +96,7 @@
    * </ul>
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.1 $ $Date: 2000/11/04 00:46:30 $
  + * @version $Revision: 1.2 $ $Date: 2000/12/30 20:47:31 $
    */
   
   public class ErrorsTag extends TagSupport {
  
  
  


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic