title: Java Filter URL pattern specific to request params
body: <p>We have a situation where we want to use filter for URL's containing some specific request parameters, e.g:</p>
  
  <pre>
  http://mydomain.com/?id=78&formtype=simple_form&.......    
  http://mydomain.com/?id=788&formtype=special_form&.......    
  </pre>
  
  <p>and so on, <code>id</code> are fetched at run time, I want configure filter in <code>web.xml</code> only if <code>formtype=special_form</code>. How should achieve the solution? Can Filter be configured with regex patterns?</p>