Hi i ve written a simple servlet example which displays a message "Hello world". i am using Tomcat 6. when i run that servlet as http://localhost:9090/Temp/tempServlet i got error HTTP Status 405 - HTTP method GET is not supported by this URL
can any one tell me wats going on there. thanks in advance.
You're correct that you are not required to override to override doGet or doPost, however, that is how you implement servlets. You should not override "service"; see here for more details.
You should definitely not call super.service (or super.doGet or super.doPost in the other methods).
really its working fine if i remove the call super.service(). then what is the problem if call like that. i couldn't understand. can you tell me what is happening there.
Originally posted by Govinda: can you tell me what is happening there.
The base methods are there to say "not supported" if you don't override them. By calling them explicitly, you are running the code that says "I'm not supported". Why would you do that?