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

How to get the actual path of servlet in server?

737


What do you mean by request dispatcher in servlet?

610


how the HTML data stored in web server?

1952


How do we translate jsp?

576


Explain jsessionid and when is it created?

597






Servlet is pure java object or not?

719


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?

775


What are some disadvantages of storing session state in cookies?

588


What are the different methods of session management in servlets?

539


What do you mean by scope object and what are its types?

568


Define the servlet mapping.

548


What are sessions in servlets?

576


What is difference between jsp and servlet?

644


Write a servlet to upload file on server.

599


What is setattribute in servlet?

554