Date: 2004-09-19T07:46:09
Editor: MichaelMcGrady <[EMAIL PROTECTED]>
Wiki: Apache Struts Wiki
Page: StrutsCatalogDispatchUtil
URL: http://wiki.apache.org/struts/StrutsCatalogDispatchUtil
no comment
Change Log:
------------------------------------------------------------------------------
@@ -102,7 +102,8 @@
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"
+{{{
+<action path="/updateProfile"
type="org.example.ProfileAction"
name="profileForm"
validate="true"
@@ -269,6 +270,7 @@
If, rather than having a utility class provide the functionality, you prefer an
Action class. Here is a redoing of the DispatchAction class to let you do that. You
use this class for '''ALL''' the progeny of DispatchAction class, i.e. this class
replaces completely DispatchAction, LookupDispatchAction, and MappingDispatchAction.
You can alter this class to get whatever subsidiary functionality you might want and
which some might consider essential.
=== Code ===
+{{{
package com.crackwillow.struts.action;
import java.lang.reflect.InvocationTargetException;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]