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
How do you run a servlet?
What are the types of servlets? Explain
Which interface must be implemented by all servlets?
Why servlet is used as controller ? Not JSP? I want complete explation?
What is the difference between servlet and filter?
Servlet is pure java object or not?
How can an existing session be invalidated?
What is called servlet mapping?
What is the web server used for running the Servlets?
When to use doget() and when dopost()?
What do you mean by deployment descriptor?
Explain the custom jsp tags and the beans.
How are filters?
How to get the actual path of servlet in server?
How servlet is created?