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 the difference between context parameter and context attribute?
What do you mean by httpservlet and how it is different from the genericservlet?
What is a servlet context?
Explain the difference between generic servlet and http servlet?
What is the GenericServlet class?
Write a servlet to upload file on server.
What is java servlet session?
Why doesn’t a servlet include main()?
How is the get () method different from the post() method?
What are the phases of the servlet life cycle?
Why the container loads server at the application startup and how?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
What is servlet and its advantages?
What are the functions of an intercepting filter?
How to find whether a parameter exists in the request object?