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
How to get the actual path of servlet in server?
What do you mean by request dispatcher in servlet?
how the HTML data stored in web server?
How do we translate jsp?
Explain jsessionid and when is it created?
Servlet is pure java object or not?
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?
What are some disadvantages of storing session state in cookies?
What are the different methods of session management in servlets?
What do you mean by scope object and what are its types?
Define the servlet mapping.
What are sessions in servlets?
What is difference between jsp and servlet?
Write a servlet to upload file on server.
What is setattribute in servlet?