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
What is a servlet-to-servlet communcation?
How would you create deadlock on your servlet?
What is servletconfig?
What is a servlet context object?
Explain the servlet context.
Difference between get and post in java servlets?
how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file
How can you run a servlet program?
Why servlet is used as controller ? Not JSP? I want complete explation?
What is the difference between jsp and servlet life cycle?
Why are http servlets used in programming?
Why doesn’t a servlet include main()?
How to handle exceptions thrown by application with another servlet?
How can we refresh automatically when new data is entered into the database?
Explain is servlet mapping?