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


Please Help Members By Posting Answers For Below Questions

What are the types of an http request?

585


Tell us something about servletcontext interface.

628


When Servlet is unloaded?

630


What do you mean by deployment descriptor?

557


Explain the working of service() method of a servlet.

508






Is servlet a framework?

545


What is a web container and what is its responsibility?

531


What are some advantages of storing session state in cookies?

598


What is lazy loading and what is Generic Servlet Class?

611


Difference between get and post in java servlets?

550


What is the use of httpservletrequestwrapper?

592


How the typical servlet code look like ?

639


Can we refresh servlet in client and server side automatically?

596


What is meant by Servlet? What are the parameters of service method?

601


Why the container loads server at the application startup and how?

585