You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hr...@apache.org on 2005/08/07 00:00:45 UTC

svn commit: r230600 - in /struts/core/trunk/doc/userGuide: building_controller.xml building_view.xml dev_validator.xml

Author: hrabago
Date: Sat Aug  6 15:00:38 2005
New Revision: 230600

URL: http://svn.apache.org/viewcvs?rev=230600&view=rev
Log:
Replace references to ActionError with ActionMessage.

Modified:
    struts/core/trunk/doc/userGuide/building_controller.xml
    struts/core/trunk/doc/userGuide/building_view.xml
    struts/core/trunk/doc/userGuide/dev_validator.xml

Modified: struts/core/trunk/doc/userGuide/building_controller.xml
URL: http://svn.apache.org/viewcvs/struts/core/trunk/doc/userGuide/building_controller.xml?rev=230600&r1=230599&r2=230600&view=diff
==============================================================================
--- struts/core/trunk/doc/userGuide/building_controller.xml (original)
+++ struts/core/trunk/doc/userGuide/building_controller.xml Sat Aug  6 15:00:38 2005
@@ -1068,7 +1068,7 @@
         </td>
         <td>
             The context ("request" or "session") that is used to access
-            the ActionError object [org.apache.struts.action.ActionError]
+            the ActionMessage object [org.apache.struts.action.ActionMessage]
             for this exception.
         </td>
         <td>

Modified: struts/core/trunk/doc/userGuide/building_view.xml
URL: http://svn.apache.org/viewcvs/struts/core/trunk/doc/userGuide/building_view.xml?rev=230600&r1=230599&r2=230600&view=diff
==============================================================================
--- struts/core/trunk/doc/userGuide/building_view.xml (original)
+++ struts/core/trunk/doc/userGuide/building_view.xml Sat Aug  6 15:00:38 2005
@@ -452,7 +452,7 @@
 
         <li>
         Perform the appropriate validations and find problems -- Return an 
-        ActionErrors instance containing <code>ActionError</code>'s, which 
+        ActionErrors instance containing <code>ActionMessage</code>'s, which 
         are classes that contain the error message keys (into the 
         application's <code>MessageResources</code> bundle) that should be 
         displayed. 

Modified: struts/core/trunk/doc/userGuide/dev_validator.xml
URL: http://svn.apache.org/viewcvs/struts/core/trunk/doc/userGuide/dev_validator.xml?rev=230600&r1=230599&r2=230600&view=diff
==============================================================================
--- struts/core/trunk/doc/userGuide/dev_validator.xml (original)
+++ struts/core/trunk/doc/userGuide/dev_validator.xml Sat Aug  6 15:00:38 2005
@@ -588,24 +588,27 @@
 
 <pre><code><![CDATA[
 <validator name="required"
-        classname="org.apache.struts.validator.FieldChecks"
-        method="validateRequired"
-        methodParams="java.lang.Object,
+      classname="org.apache.struts.validator.FieldChecks"
+         method="validateRequired"
+   methodParams="java.lang.Object,
                  org.apache.commons.validator.ValidatorAction,
                  org.apache.commons.validator.Field,
-                 org.apache.struts.action.ActionErrors,
+                 org.apache.struts.action.ActionMessages,
+                 org.apache.commons.validator.Validator,
                  javax.servlet.http.HttpServletRequest"
-        msg="errors.required">
+            msg="errors.required"/>
 
 <validator name="mask"
-        classname="org.apache.struts.validator.FieldChecks"
-        method="validateMask"
-        methodParams="java.lang.Object,
+      classname="org.apache.struts.validator.FieldChecks"
+         method="validateMask"
+   methodParams="java.lang.Object,
                  org.apache.commons.validator.ValidatorAction,
                  org.apache.commons.validator.Field,
-                 org.apache.struts.action.ActionErrors,
+                 org.apache.struts.action.ActionMessages,
+                 org.apache.commons.validator.Validator,
                  javax.servlet.http.HttpServletRequest"
-        msg="errors.invalid">
+        depends=""
+            msg="errors.invalid"/>
 ]]></code></pre>
 
     <p>
@@ -637,8 +640,8 @@
         </li>
 
         <li>
-        <code>org.apache.struts.action.ActionErrors</code>
-        - The errors objects to add an ActionError to if the validation fails.
+        <code>org.apache.struts.action.ActionMessages</code>
+        - The errors object to add an ActionMessage to if the validation fails.
         </li>
 
         <li>



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