1. I used a file "form.html" and a java file "BeerSelect.java" for understanding the working of HTTP requests. When I overrided doTrace only in the HttpServlet in my class file, and requested for a resource using "PUT" method from an html file, i got a message that HTTP method Get is not supported by the URL.
2. Also I overrided doHead method only and used a form submission method of HEAD, I got the same message " HTTP method Get is not supported by the URL"
What are the reasons for this.
The code used for the second case is shown below( relevant parts)
The servlet is properly configured in web.xml and is working when i set both the methods as get.