title: How to solve this error, HTTP method POST is not supported by this URL?
body: <p>I have below code:</p>
  
  <p>When I run in Apache tomcat server it gives me this error:</p>
  
  <blockquote>
    <p>HTTP Status 405 - HTTP method POST is not supported by this URL</p>
  </blockquote>
  
  <p>Below I mention one admin.html file which I am calling. </p>
  
  <p>It's have post method, and calling [MoviesServlet.java] which have override doPost(). //(I also try in other workspace.)</p>
  
  <p>admin.html</p>
  
  <pre><code>&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="fs" method="post"&gt;
          &lt;h1&gt;Released Movie&lt;/h1&gt;
  
      &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>MovieServlet.java</p>
  
  <pre><code>public class MovieServlet extends HttpServlet{
  
      private SessionFactory factory = HibernateUtil.getSessionFactory();
  
      @Override
      protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
  </code></pre>
  
  <p>web.xml</p>
  
  <pre><code>&lt;display-name&gt;hib_servlet_getUpdate&lt;/display-name&gt;
      &lt;welcome-file-list&gt;
          &lt;welcome-file&gt;admin.html&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;MovieServlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/fs&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
      &lt;servlet&gt;
          &lt;servlet-name&gt;MovieServlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;com.jspiders.getUpdateApp.Servlet.MovieServlet&lt;/servlet-class&gt;
      &lt;/servlet&gt;
  </code></pre>