title: How to specify filter priorities in java web apps?
body: <p>Hello I wish I could define two filters like this</p>
  
  <pre><code>  &lt;filter-mapping&gt;
      &lt;filter-name&gt;SecurityFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
    &lt;/filter-mapping&gt;
    &lt;filter-mapping&gt;
      &lt;filter-name&gt;ContextFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
    &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>with the same pattern /* in my web.xml file, and I wish I could be sure the SecurityFilter will be executed before the other. Is there a way to do so?</p>