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 some advantages of storing session state in cookies?
List the Different types of servlet?
Explain how does JSP handle run-time exceptions?
How do you deal property files in servlet?
Servlet is pure java object or not?
What are sessions in servlets?
explain the advantages of servlet life cycle?
What is servlet lazy loading?
Differentiate between the get and post method
What is the directory structure of web application?
What do you mean by singlethreadmodel interface?
What is the use of welcome-file-list?
What's the difference between authentication and authorization?
How do servlets work?
What are the difference between RMI and Servlets?