title: How to configure url mapping in web.xml to restrict access?
body: <p>I have few pages in following structure.</p>
  
  <pre class="lang-none prettyprint-override"><code>--Project
    |---WebContect
        |----Admin/ *
        |----Author/ * 
        |----Readonly/ * 
        |----Index.jsp
  </code></pre>
  
  <p>I want to restrict the user from accessing Pages under <code>Admin</code>,<code>Author</code> and <code>Readonly</code>. I don't want anybody to access these pages. And if somebody tries to do so, should be redirected to <code>index.jsp</code>.</p>
  
  <p>The easiest solution that come in my mind is using a <code>Filter</code>, but I am trying to find if its possible to do using <code>web.xml</code>.</p>