Servlet welcome -file-list is not working
<p>I am trying to make a simple code for servlet to accept a input from user and print it.
this is my Servlet clas-:</p>

<pre><code>import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class welcome
 */
//@WebServlet("/welcome")
public class welcome extends HttpServlet {
    private static final long serialVersionUID = 1L;

    /**
     * @see HttpServlet#HttpServlet()
     */
    public welcome() {
        super();
        // TODO Auto-generated constructor stub
    }

    /**
     * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
     */
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        // TODO Auto-generated method stub
        response.getWriter().append("Served at: ").append(request.getContextPath());

        response.setContentType("text/html");  
        PrintWriter pw=response.getWriter();  

        String name=request.getParameter("name");//will return value  
        pw.println("Welcome "+name);  

        pw.close();  
    }

    /**
     * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
     */
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        // TODO Auto-generated method stub
        doGet(request, response);
    }

}
</code></pre>

<p>My Html page code-:Newfile101.html</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset="ISO-8859-1"&gt;
&lt;title&gt;Insert title here&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form action="./welcome" method="get"&gt;  
Enter your name&lt;input type="text" name="name"&gt;&lt;br&gt;  
&lt;input type="submit" value="login"&gt;  
&lt;/form&gt; 
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>My web.xml file-:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1"&gt;
  &lt;display-name&gt;T3&lt;/display-name&gt;

&lt;welcome-file-list&gt;
    &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
    &lt;welcome-file&gt;index.htm&lt;/welcome-file&gt;
    &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
    &lt;welcome-file&gt;default.html&lt;/welcome-file&gt;
    &lt;welcome-file&gt;default.htm&lt;/welcome-file&gt;
    &lt;welcome-file&gt;default.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;



  &lt;servlet&gt;
&lt;servlet-name&gt;son&lt;/servlet-name&gt;
&lt;servlet-class&gt;welcome&lt;/servlet-class&gt;
&lt;/servlet&gt;

&lt;servlet-mapping&gt;
&lt;servlet-name&gt;son&lt;/servlet-name&gt;
&lt;url-pattern&gt;/welcome&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;

  &lt;welcome-file-list&gt;  

   &lt;welcome-file&gt;NewFile101.html&lt;/welcome-file&gt;  
  &lt;/welcome-file-list&gt;  
  &lt;/web-app&gt;
</code></pre>

<p>Now eventhough my web.xml contains welcome file list it is still not working.
I am using Tomcat 8.5 in eclipse oxigen.</p>

<p>Please help.</p>