title: How to map raw Java servlet to an HTML file in web.xml?
body: <p>My WAR is structure is as follows:</p>
  
  <pre><code>my-web-app.war/
      views/
          index.html
          blah.html
      META-INF/
          MANIFEST.MF
      WEB-INF/
          web.xml
          lib/
              &lt;!-- Dependencies --&gt;
          classes/
              org.me.mywebapp.controllers/
                  MyController.class
              &lt;!-- Other packages/classes as well --&gt;
  </code></pre>
  
  <p>I would like to configure <code>web.xml</code> so that when the WAR is deployed locally it's <code>index.html</code> page can be accessed by going to <code>http://localhost/my-web-app/index.html</code>.</p>
  
  <p>Here's what I have so far:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app
      xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"&gt;
  
      &lt;!-- The display name of this web application --&gt;
      &lt;display-name&gt;My Web App&lt;/display-name&gt;
  
      &lt;listener&gt;
          &lt;listener-class&gt;
              org.me.mywebapp.context.ContextImpl
          &lt;/listener-class&gt;
      &lt;/listener&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>How do I configure this URL to view mapping? Thanks in advance!</p>