You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ni...@apache.org on 2006/02/22 06:27:44 UTC

svn commit: r379693 - /struts/action/branches/STRUTS_1_2_BRANCH/web/examples/WEB-INF/exercise/struts-config.xml

Author: niallp
Date: Tue Feb 21 21:27:40 2006
New Revision: 379693

URL: http://svn.apache.org/viewcvs?rev=379693&view=rev
Log:
Use <set-property> rather than cancellable attribute in 1.2.x branch

Modified:
    struts/action/branches/STRUTS_1_2_BRANCH/web/examples/WEB-INF/exercise/struts-config.xml

Modified: struts/action/branches/STRUTS_1_2_BRANCH/web/examples/WEB-INF/exercise/struts-config.xml
URL: http://svn.apache.org/viewcvs/struts/action/branches/STRUTS_1_2_BRANCH/web/examples/WEB-INF/exercise/struts-config.xml?rev=379693&r1=379692&r2=379693&view=diff
==============================================================================
--- struts/action/branches/STRUTS_1_2_BRANCH/web/examples/WEB-INF/exercise/struts-config.xml (original)
+++ struts/action/branches/STRUTS_1_2_BRANCH/web/examples/WEB-INF/exercise/struts-config.xml Tue Feb 21 21:27:40 2006
@@ -24,24 +24,33 @@
   <action-mappings>
     <action path="/welcome" forward="/index.html" />
     <action path="/bean-write-2" forward="/bean-write-2.jsp" />
-    <action path="/html-cancel" forward="/html-cancel.jsp"/>
+    <action path="/html-cancel" forward="/html-cancel.jsp">
+            <set-property property="cancellable" value="false"/>
+    </action>
     <action path="/html-cancel-true" name="testbean"
-                input="/html-cancel.jsp" cancellable="true" validate="true"
-                forward="/welcome.do"/>
+                input="/html-cancel.jsp" validate="true"
+                forward="/welcome.do">
+            <set-property property="cancellable" value="true"/>
+    </action>
     <action path="/html-cancel-false" name="testbean"
-                input="/html-cancel.jsp" cancellable="false" validate="true"
+                input="/html-cancel.jsp" validate="true"
                 forward="/welcome.do">
+            <set-property property="cancellable" value="false"/>
             <exception
                     key="errors.invalidCancel"
                     type="org.apache.struts.action.InvalidCancelException"
                     path="/html-cancel.jsp"/>
     </action>
     <action path="/html-cancel-exception" name="testbean"
-                input="/html-cancel.jsp" cancellable="false" validate="true"
-                forward="/welcome.do"/>
+                input="/html-cancel.jsp" validate="true"
+                forward="/welcome.do">
+            <set-property property="cancellable" value="false"/>
+    </action>
     <action path="/html-cancel-novalidate" name="testbean"
-                input="/html-cancel.jsp" cancellable="false" validate="false"
-                forward="/welcome.do"/>
+                input="/html-cancel.jsp" validate="false"
+                forward="/welcome.do">
+            <set-property property="cancellable" value="false"/>
+    </action>
     <action path="/html-img" forward="/html-img.jsp" />
      <!-- :FIXME: ImageAction should compute module prefix -->
     <action path="/html-img-action" type="org.apache.struts.webapp.exercise.ImageAction" parameter="/exercise/struts-power.gif"/>



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