title: Combining UrlRewriteFilter and struts 2 with get parameters
body: <p>Following up on an older question of mine, I managed to get URL Rewriting working somewhat correctly for my struts project where URLs like <code>search?q=blah</code> get converted to queries <code>search.action?q=blah</code>. We use <a href="http://code.google.com/p/urlrewritefilter/" rel="nofollow noreferrer">UrlRewriteFilter</a> for this. This seems to forward fine to struts (if making sure it has a filter mapping with FORWARD), but when the <code>ParametersIntercepter</code> runs it seems to be catching every parameter twice, and adding comma's in between. So the following:</p>
  
  <pre><code>search.action?q=blah
  </code></pre>
  
  <p>Sets the parameter q on the Criteria object (see further) to:</p>
  
  <pre><code>[ blah, blah ]
  </code></pre>
  
  <p>The parameters are set using <code>ModelDriven&lt;Criteria&gt;</code> Where Criteria is a simple class with a bunch of properties to be set from the GET string.</p>
  
  <p>I'm at a loss to explain why this is happening. Has anyone ever seen anything like this? Am I doing something wrong with regards to the filters/interceptors?</p>
  
  <p>edit: It seems the <code>ParametersInterceptor</code> simply sets the parameters contained inside the ActionContext object. I'm not sure (and am not seeing any debug messages that indicate) where these values are being set in the ActionContext. Does anyone care to clarify how this is all supposed to work?</p>