title: Tomcat, enable DELETE method
body: <p>This question is asked before <a href="https://stackoverflow.com/questions/17853812/how-to-make-apache-tomcat-accept-delete-method">How to make Apache Tomcat accept DELETE method</a>, but the solution it provides doesn't work for me. I've added </p>
  
  <pre><code>&lt;init-param&gt;
      &lt;param-name&gt;readonly&lt;/param-name&gt;
      &lt;param-value&gt;false&lt;/param-value&gt;
  &lt;/init-param&gt;
  </code></pre>
  
  <p>to web.xml and my <code>&lt;servlet&gt;</code> setting looks like this:</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;default&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.apache.catalina.servlets.DefaultServlet&lt;/servlet-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;debug&lt;/param-name&gt;
          &lt;param-value&gt;0&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;listings&lt;/param-name&gt;
          &lt;param-value&gt;false&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;readonly&lt;/param-name&gt;
          &lt;param-value&gt;false&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  </code></pre>
  
  <p>But still, I got 405 when visiting with <code>DELETE</code>. Any advice? btw I've restarted tomcat.</p>