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
How can I send user authentication information while making URL Connection?
Define the lifecycle for executing a jsp page.
What are the life cycle methods of the servlet?
Why do we use sendredirect() method?
How can we refresh automatically when new data has entered the database?
Write a program to show the functionality of doget and dopost method?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
Can we override destroy method in servlet?
What is the functionality of actionservlet and requestprocessor?
What is the use of servletconfig interface?
What do you mean by the servlet chaining?
Define the servlet mapping.
Does servlet have main method?
What do you mean by request dispatcher in servlet? Also explain its methods.
Can a jsp be called using a servlet?