title: html file still pointing to jsp file instead of servlet
body: <p>I have three files, The first one is called <strong>index.html</strong>, the other is <strong>des.jsp</strong> and the last one is called <strong>addEmailListServlet</strong>. </p>
  
  <p>In the past when user insert his data in the form the html file sent them to the des.jsp but now I want the data to be sent to the servlet class so I changed the action parameter in the html to point to the servlet and I wrote the web.xml file and I deleted cache but nothing is working still sending the user to the wrong file.</p>
  
  <p>here is my html file:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;TODO supply a title&lt;/title&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form action="/addEmailListServlet" method="post"&gt;
          &lt;table cellspacing="5"  border="0"&gt;
          &lt;tr&gt;
              &lt;td align="right"&gt;name:&lt;input type="text" name="name"/&gt;&lt;/td&gt;
  
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td align="right"&gt;surname:&lt;input type="text" name="surname"/&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td align="right"&gt;email:&lt;input type="text" name="email"/&gt;&lt;/td&gt;
  
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td align="center"&gt;&lt;input type="submit"/&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>as you can see the action in the form is sending the user to addEmailListServlet but this is not happening now take look at web.xml</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"&gt;
      &lt;servlet&gt;
          &lt;servlet-name&gt;addEmailListServlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;email.addEmailListServlet&lt;/servlet-class&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;addEmailListServlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/addEmailListServlet&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      &lt;session-config&gt;
          &lt;session-timeout&gt;
              30
          &lt;/session-timeout&gt;
      &lt;/session-config&gt;
      &lt;welcome-file-list&gt;
          &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>I think there is no need to look at servlet file.</p>