Date: 2004-09-17T00:29:55 Editor: MichaelMcGrady <[EMAIL PROTECTED]> Wiki: Apache Struts Wiki Page: StrutsCatalogSimpleDispatchAction URL: http://wiki.apache.org/struts/StrutsCatalogSimpleDispatchAction
no comment Change Log: ------------------------------------------------------------------------------ @@ -113,8 +113,7 @@ methodName = buttonValue.replaceFirst("method.",""); if(methodName.endsWith(".x")) { methodName = methodName.replaceFirst(".x",""); - } - if(buttonValue.endsWith(".y")) { + } else if(buttonValue.endsWith(".y")) { methodName = methodName.replaceFirst(".y",""); } break; @@ -183,7 +182,6 @@ '''Please note that if you like configuring struts-config.xml and like !MappingDispatchAction, !SimpleDispatchAction does everything that class does and more.''' -'''Michael !McGrady''' '''Following a suggestion of Hubert Rabago, I have constructed a utility class !DispatchUtil so that you can get the same result by using''' {{{ @@ -279,8 +277,7 @@ methodName = buttonValue.replaceFirst("method.",""); if(methodName.endsWith(".x")) { methodName = methodName.replaceFirst(".x",""); - } - if(buttonValue.endsWith(".y")) { + } else if(buttonValue.endsWith(".y")) { methodName = methodName.replaceFirst(".y",""); } break; @@ -323,6 +320,16 @@ } } }}} + + + +'''Michael !McGrady''' [EMAIL PROTECTED] + + + + + ---- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]