In servlets, Why do we need both GET and POST method
implementations?
Answer Posted / abhijitbaji
if you are using HttpServlet then you have to implement
doGet() and or doPost() as per the method specified in jsp.
by default method type is "GET"
if you are using GenericServlet, you have to implement
servive()
| Is This Answer Correct ? | 8 Yes | 4 No |
Post New Answer View All Answers
Write a program to show the functionality of servlets.
Describe the phases of servlet lifecycle?
What are all the ways for session tracking?
How does java thread pool work?
Explain web application directory arrangement?
What’s the difference between genericservlet and httpservlet?
What is meant by a servlet?
What is the difference between Servlets and Applets?
What is the dispatcher servlet?
When a servlet accepts a call from a client, it receives two objects. What are they?
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
What is the process for chaining servlet?
Explain the difference between servlet and cgi?
what is servlet chaining?
What are the ways to handle multi-threading in servlets?