In servlets, Why do we need both GET and POST method
implementations?
Answer Posted / amit pandey
In servlet, the default method is doget(), which has
various limitations like the request length shuld be < than
1024 characters, all the information r send as URL, which
is not secure, large data like images cannot be send in URL.
Hence the POST method is implementated that overcome all
this issues w.r.t. the GET method.
Hence, in order that application shuld be more secure &
user orientated, both the methods are impelmentated.
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
What is the use of servletconfig interface?
How we can create war file in servlet?
How do you run a servlet?
What are the various ways of session supervision in servlets?
Explain request dispatcher and its methods.
What is the difference between Difference between doGet() and doPost()?
What are the different ways we can maintain state between requests?
What is a servlet?
Is it good idea to create servlet constructor?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What is java servlet?
Can you refresh servlet in client and server-side automatically?
How many objects of a servlet is created?
What are the types of protocols supported by httpservlet ?
What are the different methods of session management in servlets?