title: How to set default method for Delegate method of MultiActionController ?
body: <p>I'm using Spring MVC for a web app project and I'm trying to avoid using annotations.</p>
  
  <p>I came across as far as getting MultiActionController and delegate working.</p>
  
  <p>The question is, how do I set the default method in the delegate of a MultiActionController ? </p>
  
  <p>By MultiActionController, I mean something like this</p>
  
  <pre><code>public class TestController1 extends MultiActionController{
  
      public TestController1(){
          System.out.println("TestController1 initialising...");
      }
  }
  </code></pre>
  
  <p>My xml settings are...</p>
  
  <pre><code>&lt;bean id="multiactionController1" class="test.TestController1"&gt;
      &lt;property name="delegate" ref="testDelegater1"/&gt;    
      &lt;property name="methodNameResolver" ref="paramResolver"/&gt;
  &lt;/bean&gt;
  
  &lt;!-- Delegaters --&gt;
  &lt;bean id="testDelegater1" class="test.TestController1Delegator"/&gt;
  
  &lt;!-- param method name resolver --&gt;
  &lt;bean id="paramResolver"  class="org.springframework.web.servlet.mvc.multiaction.ParameterMethodNameResolver"&gt;
      &lt;property name="paramName" value="action"/&gt;
  &lt;/bean&gt;
  &lt;!-- Simple Url Handler Mapping --&gt;
      &lt;bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"&gt;
         &lt;property name="mappings"&gt;
            &lt;map&gt;
               &lt;entry key="/multiaction1/**" value-ref="multiactionController1"/&gt;
               &lt;entry key="/item/**" value-ref="itemController"/&gt;
            &lt;/map&gt;
         &lt;/property&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>So when I send a request like '*/item' , notice it doesn't have an action parameter, instead of giving me an error I would like to have a default method.</p>