title: Java Sevlet Mapping. Welcome File List
body: <p>In my web.xml file I have this</p>
  
  <pre><code>&lt;!-- WELCOME FILE LIST --&gt;
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;/index&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  </code></pre>
  
  <p>Which maps to this</p>
  
  <pre><code>&lt;!-- SERVLET FOR THE HOME PAGE --&gt;
  &lt;servlet&gt;
      &lt;servlet-name&gt;HomePageServlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.gmustudent.HomePageServlet&lt;/servlet-class&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;HomePageServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/index&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>When I put this in the address bar I get my home page site and the servlet grabs all of my content as requested.</p>
  
  <pre><code>http://localhost:8086/gmustudent/index
  </code></pre>
  
  <p>However, this gives me a 404</p>
  
  <pre><code>http://localhost:8086/gmustudent/
  </code></pre>
  
  <p>Why isn't my welcome file list grabbing that welcome file servlet when index is not explicitly stated? </p>