Date: 2004-09-19T07:01:48
   Editor: MichaelMcGrady <[EMAIL PROTECTED]>
   Wiki: Apache Struts Wiki
   Page: StrutsCatalogDispatchUtil
   URL: http://wiki.apache.org/struts/StrutsCatalogDispatchUtil

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -58,7 +58,7 @@
 }}}
 === struts-config.xml Uses ===
 
-If you like to do things the way they are done with DispatchActions and use Struts 
xml for commands, then the following are possibilities.  '''Please note that you never 
have to do this.  Struts xml configuration is wholly voluntary for this solution.'''
+If you like to do things the way they are done with DispatchActions and use Struts 
xml for commands, then the following are possibilities.  '''Please note that you never 
have to do this.  Struts xml configuration is wholly voluntary for this solution.'''  
If you want the sort of behavior you get with MappingDispatchAction using 
DispatchUtil, then you do as we indicate.  This does not mean, of course, that you 
have to use MappingDispatchAction.  DispatchUtil completely absorbs all the 
functionality of the DispatchActions.  You will see, further, that no 
struts-config.xml configuration is required at all for LookupDispatchActions.
 
 ==== MappingDispatchAction ====
 
@@ -85,7 +85,25 @@
 }}}
 ==== LookupDispatchAction ====
 
-(TODO)
+This solution depends not on the value of the path attribute or the parameter 
property in the ActionMapping, notice that no parameter attribute exists below, but 
strictly on the values of the name attributes as indicated in our section on the tags. 
 In other words, we don't have to configure struts-config.xml for what used to be 
LookupDispatchActions.
+
+{{{<action path="/updateProfile" 
+          type="org.example.ProfileAction" 
+          name="profileForm" 
+          validate="true" 
+          input="/editProfile.jsp" 
+          scope="request">
+      <forward name="success" path="/updatedProfile.jsp"/>
+  </action>
+
+  <action path="/deleteSubscription" 
+          type="org.example.ProfileAction"
+          name="profileForm"
+          scope="request"
+          input="/subscription.jsp"
+      <forward name="success" path="/deletedSubscription.jsp"/>
+  </action>
+}}}
 
 == Code ==
 {{{

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

Reply via email to