title: Changing form action method name but server reffering to old method name
body: <p>I'm using Eclipse Indigo. In my HTML form action method I put <code>&lt;form action="T1" method="post"&gt;</code> where T1 is a Java servlet. If I edit and rename form action method to T2 and save changes, when running tomcat server on localhost, after clicking on button it still goes to T1!</p>
  
  <p>I tried refreshing my project, deleting and recreating server but still the same problem. What should I do?</p>
  
  <p>Any help is appreciated.</p>
  
  <p>My web.xml file:</p>
  
  <pre><code>       &lt;?xml version="1.0" encoding="UTF-8"?&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;
  </code></pre>
  
  <p>
  </p>
  
  <p>This is my html file:</p>
  
  <pre><code>    &lt;html&gt;
      &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
      &lt;title&gt;Insert title here&lt;/title&gt;
      &lt;/head&gt;
       &lt;body&gt;
      &lt;form action="Pk" method="post"&gt;
      Name &lt;input type="text" name="tex1"&gt; &lt;br&gt; 
      Address &lt;input type="text" name="tex2"&gt; &lt;br&gt;
        College Name &lt;input type="text" name="tex3"&gt; &lt;br&gt;
      Aggregate percentage &lt;input type="text" name="tex4"&gt; &lt;br&gt;
        Title of Resume &lt;input type="text" name="tex5"&gt; &lt;br&gt;
          Username &lt;input type="text" name="tex6"&gt; &lt;br&gt;
         Password &lt;input type="password" name="tex7"&gt; &lt;br&gt;
       &lt;input type="submit" name="sub" value="Login"&gt; &lt;br&gt;
        &lt;/form&gt;
        &lt;/body&gt;
         &lt;/html&gt;
  </code></pre>
  
  <p>And this is servlet file:</p>
  
  <pre><code>      public class Pk extends HttpServlet {
        private static final long serialVersionUID = 1L;
         String name="",addr="",coll="", aggper="", tor="", user="", pass="";
         public Pk() {
           super();
  
  
   // TODO Auto-generated constructor stub
  }
  protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
  
  
      response.setContentType("text/html");
      PrintWriter out=response.getWriter();
  
  
      name=(String)request.getParameter("tex1");
      addr=(String)request.getParameter("tex2");
  
      coll=(String)request.getParameter("tex3");
  
      aggper=(String)request.getParameter("tex4");
  
      tor=(String)request.getParameter("tex5");
      user =(String)request.getParameter("tex6");
      pass =(String)request.getParameter("tex7");
  
  
      System.out.println("Reached after fetching values");
      if(user.equals("")||pass.equals("")||user.equals(null)||pass.equals(null))
      {
          out.println("Username or Password cannot be blank.");
      }
      else
          {
          System.out.println("Reached in else condition");
          Pk2 reg=new Pk2();
          reg.Registration(name,addr,coll,aggper,tor,user, pass);
          RequestDispatcher rd=request.getRequestDispatcher("index.html");
      rd.forward(request, response);
          }
  }
  
  }
  </code></pre>