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 are the types of an http request?
Tell us something about servletcontext interface.
When Servlet is unloaded?
What do you mean by deployment descriptor?
Explain the working of service() method of a servlet.
Is servlet a framework?
What is a web container and what is its responsibility?
What are some advantages of storing session state in cookies?
What is lazy loading and what is Generic Servlet Class?
Difference between get and post in java servlets?
What is the use of httpservletrequestwrapper?
How the typical servlet code look like ?
Can we refresh servlet in client and server side automatically?
What is meant by Servlet? What are the parameters of service method?
Why the container loads server at the application startup and how?