title: Filters - Ignore the other requests excluding the welcome file
body: <p>I wrote a filter to decide user landing page before it reach my welcome-file. The welcome-file is written in such a way that it takes input from the filter and navigate the user to a specific page.</p>
  
  <p>My welcome-file tag is...</p>
  
  <pre><code>&lt;welcome-file-list&gt;
     &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  </code></pre>
  
  <p>and my filter configuration is </p>
  
  <pre><code>&lt;filter&gt;
      &lt;filter-name&gt;LandingPageFilter&lt;/filter-name&gt;
      &lt;filter-class&gt;com.mypack.test.filters.LandingPageFilter&lt;/filter-class&gt;
  &lt;/filter&gt;
  
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;LandingPageFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>The above format is working good whilst every request is passing through this filter, which I want to avoid. When I hit <code>http://localhost:8000/landing</code> it should reach the filter for the first time only and later even if I access <code>http://localhost:8000/landing/edit</code> it should actually execute the relevant servlet bypassing the filter.</p>
  
  <p>I tried this as well <code>&lt;url-pattern&gt;/*/index.jsp&lt;/url-pattern&gt;</code> but no use. Why I use this because the <strong>context</strong> may vary but the app would be same.</p>