title: web.xml <filter-mapping> not working when using <servlet-name>
body: <p>I have a web.xml that has this in it:</p>
  
  <pre><code> &lt;filter&gt;
      &lt;description&gt;CASRebroadcastFilter&lt;/description&gt;
      &lt;filter-name&gt;CASRebroadcastFilter&lt;/filter-name&gt;
      &lt;filter-class&gt;edu.utah.acs.tek.filters.CASSingleSignOutRebroadcast&lt;/filter-class&gt;
  &lt;/filter&gt;
  
  (... more CAS-filters)
  
  &lt;servlet&gt;
      &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.do&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;CASRebroadcastFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;*.do&lt;/url-pattern&gt;        
  &lt;/filter-mapping&gt;
  
  (... more CAS-filter-mappings and the rest of my web.xml...)
  </code></pre>
  
  <p>Environment: Spring 2.5, Glassfish 2.1</p>
  
  <p>And this works as expected -- namely, the CASRebroadcastFilter intercepts and handles the appropriate calls and allows everything else to pass through.</p>
  
  <p>But if I change my filter-mapping to this:</p>
  
  <pre><code>&lt;filter-mapping&gt;
      &lt;filter-name&gt;CASRebroadcastFilter&lt;/filter-name&gt;
      &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>It doesn't work.  And by "doesn't work" I mean exactly that:  everything passes through the CASRebroadcastFilter as if it's just not there and not a single error or other thing is output.</p>
  
  <p>It's as if the <code>&lt;servlet-name&gt;</code> tag just doesn't work within the context of some aspect of my environment.</p>
  
  <p>Has anyone else seen this or know what might be causing this?</p>