title: Binding a list in @RequestParam
body: <p>I'm sending some parameters from a form in this way:</p>
  
  <pre><code>myparam[0]     : 'myValue1'
  myparam[1]     : 'myValue2'
  myparam[2]     : 'myValue3'
  otherParam     : 'otherValue'
  anotherParam   : 'anotherValue' 
  ...
  </code></pre>
  
  <p>I know I can get all the params in the controller method by adding a parameter like</p>
  
  <pre><code>public String controllerMethod(@RequestParam Map&lt;String, String&gt; params){
      ....
  }
  </code></pre>
  
  <p>I want to bind the parameters myParam[] (not the other ones) to a list or array (anything that keeps the index order), so I've tried with a syntax like:</p>
  
  <pre><code>public String controllerMethod(@RequestParam(value="myParam") List&lt;String&gt; myParams){
      ....
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public String controllerMethod(@RequestParam(value="myParam") String[] myParams){
      ....
  }
  </code></pre>
  
  <p>but none of them are binding the myParams. Even when I add a value to the map it is not able to bind the params:</p>
  
  <pre><code>public String controllerMethod(@RequestParam(value="myParam") Map&lt;String, String&gt; params){
      ....
  }
  </code></pre>
  
  <p>Is there any syntax to bind some params to a list or array without having to create an object as @ModelAttribute with a list attribute in it?</p>
  
  <p>Thanks</p>