You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by ba...@apache.org on 2007/02/09 01:09:02 UTC

svn commit: r505093 - /struts/struts1/trunk/src/site/xdoc/userGuide/building_controller.xml

Author: bayard
Date: Thu Feb  8 16:09:01 2007
New Revision: 505093

URL: http://svn.apache.org/viewvc?view=rev&rev=505093
Log:
Improving the formatting of a couple of the code examples (related to STR-1873)

Modified:
    struts/struts1/trunk/src/site/xdoc/userGuide/building_controller.xml

Modified: struts/struts1/trunk/src/site/xdoc/userGuide/building_controller.xml
URL: http://svn.apache.org/viewvc/struts/struts1/trunk/src/site/xdoc/userGuide/building_controller.xml?view=diff&rev=505093&r1=505092&r2=505093
==============================================================================
--- struts/struts1/trunk/src/site/xdoc/userGuide/building_controller.xml (original)
+++ struts/struts1/trunk/src/site/xdoc/userGuide/building_controller.xml Thu Feb  8 16:09:01 2007
@@ -1088,11 +1088,9 @@
                 </p>
 
                 <source>
-                    &lt;form-bean name="myForm"
-                    type="org.apache.struts.validator.LazyValidatorForm"&gt;
-                    &lt;form-property name="myMap" type="java.util.TreeMap" /&gt;
-                    &lt;form-property name="myBeans"
-                    type="org.apache.commons.beanutils.LazyDynaBean[]" /&gt;
+                    &lt;form-bean name="myForm" type="org.apache.struts.validator.LazyValidatorForm"&gt;
+                        &lt;form-property name="myMap" type="java.util.TreeMap" /&gt;
+                        &lt;form-property name="myBeans" type="org.apache.commons.beanutils.LazyDynaBean[]" /&gt;
                     &lt;/form-bean&gt;
                 </source>
 
@@ -1122,10 +1120,10 @@
                 <source>
                     public class MyLazyForm extends LazyValidatorForm {
 
-                    public MyLazyForm () {
-                    super();
-                    setPathValidation(true);
-                    }
+                        public MyLazyForm () {
+                            super();
+                            setPathValidation(true);
+                        }
 
                     }
                 </source>
@@ -1142,10 +1140,8 @@
                 </p>
 
                 <source>
-                    &lt;form-bean name="myForm"
-                    type="org.apache.commons.beanutils.LazyDynaBean"&gt;
-                    &lt;form-property name="myBeans"
-                    type="org.apache.commons.beanutils.LazyDynaBean[]" /&gt;
+                    &lt;form-bean name="myForm" type="org.apache.commons.beanutils.LazyDynaBean"&gt;
+                        &lt;form-property name="myBeans" type="org.apache.commons.beanutils.LazyDynaBean[]" /&gt;
                     &lt;/form-bean&gt;
                 </source>
 
@@ -1322,7 +1318,7 @@
                     ServletResponse response)
                     throws Exception;
 
-                    public ActionForward execute(ActionMapping mapping,
+public ActionForward execute(ActionMapping mapping,
                     ActionForm form,
                     HttpServletRequest request,
                     HttpServletResponse response)