HI everybody I am new to this forum.I have just started studing Head first servlets and Jsp. I have installed eclipse and downloaded tomcat. i even added tomcat plugin to eclipse. I tried the first beer example. when i tried to run i got
HTTP Status 405 - HTTP method POST is not supported by this URL
It's telling you that you did not implement doPost in your servlet and the form you are submitting specified a method of "POST"
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Joined: Oct 16, 2005
In your servlet, I believe you have only implemeted doGet(..) method. But In HTML form, you are submitting a form data using POST method, so when container calls a service() method of GenericServlet class, it tries to find doPost() method. (Because the type of request coming from browser is POST). But doPost() does not exist so you are getting that error.