Why do I get the error Http Method POST is not Supported by this URL?

Jatinder Thind

Most probably you have put only the doGet() method in your servlet. If the form you used to submit data has POST in its method tag, the above exception will be thrown. Change this tag to GET or add a doPost() method into your servlet.