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
Is tomcat a servlet container?
What are the objects involved when a servlet receives a call from client?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
Explain the difference between servletconfig and servletcontext in servlet?
How does tomcat servlet container work?
What is the difference between the include() and forward() methods?
What is URL Encoding?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
What is servlet and its advantages?
Is servlet a controller?
What is difference between GenericServlet and HttpServlet?
Explain web container.
What is the difference between Difference between doGet() and doPost()?
Explain servlet.
What do you mean by url pattern in servlet?