title: Spring MVC: Dynamic Param Name or Param Name using Regex?
body: <p>I'm trying out this grid component called <a href="http://www.jquery-bootgrid.com/" rel="nofollow">jQuery Bootgrid</a>. In AJAX mode, it <code>POST</code>s parameters to the server and the one related to sorting is sent like this:</p>
  
  <pre><code>sort[colname]=desc
  </code></pre>
  
  <p>The <code>colname</code> part changes depending on how you sort the grid. </p>
  
  <p>Is there any way in Spring MVC using <code>@RequestParam</code> to capture that <code>sort</code> param?</p>
  
  <p>For example, something like:</p>
  
  <pre><code>@RequestParam("sort[{\\*}]") Map&lt;String, String&gt; sort
  </code></pre>
  
  <p>That's just a wild guess and I doubt there is any clean way to do it. Any suggestions on how to handle it would be great.</p>
  
  <hr/>
  
  <p>Update: Also tried this simpler version which I actually thought might work</p>
  
  <pre><code>@RequestParam("sort") Map&lt;String, String&gt; sort
  </code></pre>