Answer Posted / om shastri
doGet is called in response to an HTTP GET request. This
happens when users click on a link, or enter a URL into the
browser's address bar. It also happens with some HTML FORMs
(those with METHOD="GET" specified in the FORM tag).
doPost is called in response to an HTTP POST request. This
happens with some HTML FORMs (those with METHOD="POST"
specified in the FORM tag).
Both methods are called by the default (superclass)
implementation of service in the HttpServlet base class.
You should override one or both to perform your servlet's
actions. You probably shouldn't override service().
| Is This Answer Correct ? | 9 Yes | 5 No |
Post New Answer View All Answers
Describe the phases of servlet lifecycle?
How do you configure a centralized error handler in servlets?
What is pure servlet?
How do you run a servlet?
What is the type of method for sending request from http server?
Explain web application directory arrangement?
What are the steps that are required to handle the multi-threading?
Write a simple servlet program to print the contents of html.
How can we upload the file to the server using servlet?
What is string tokenizer?
Difference between doget and dopost?
Explain how does JSP handle run-time exceptions?
How can you run a servlet program?
What is servlet collaboration?
What is the difference between 2 types of servlets?