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
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.