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 is servlet and how it works?
What is the main purpose of java servlets?
How can you run a servlet program?
What are the phases of servlet life cycle?
If my browser does not support cookie, and my server sends a cookie instance what will happen?
If a servlet is not properly initialized, what exception may be thrown?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
Why is Servlet so popular?
What are common tasks performed by Servlet Container?
What exactly is a servlet?
What is getservletcontext?
Which exception is thrown if the servlet is not initialized properly?
Can you call a jsp from the servlet?
What are the types of servlets? Explain
What is the servletconfig object?