Date: 2004-09-19T11:25:17
Editor: MichaelMcGrady <[EMAIL PROTECTED]>
Wiki: Apache Struts Wiki
Page: StrutsCatalogMultipleButtonSolutions
URL: http://wiki.apache.org/struts/StrutsCatalogMultipleButtonSolutions
no comment
Change Log:
------------------------------------------------------------------------------
@@ -142,7 +142,7 @@
</action>
}}}
-== Code ==
+== SOLUTON ONE: DispatchUtil Solution Code ==
{{{
package com.crackwillow.struts.util.dispatch;
@@ -290,7 +290,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 ===
+=== SOLUTION TWO: (new) DispatchAction Solution Code ===
{{{
package com.crackwillow.struts.action;
@@ -450,7 +450,7 @@
You can use the same strategy to determine what button tag has been clicked without
employing Struts. The best way to do this, in my opinion, in the following solution.
-=== Code ===
+=== SOLUTION THREE: ButtonTagUtil Solution Code ===
{{{
public class ButtonTagUtil {
public static String getName(HttpServletRequest request) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]