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

What is the difference between context parameter and context attribute?

524


What do you mean by httpservlet and how it is different from the genericservlet?

531


What is a servlet context?

591


Explain the difference between generic servlet and http servlet?

537


What is the GenericServlet class?

591






Write a servlet to upload file on server.

591


What is java servlet session?

515


Why doesn’t a servlet include main()?

551


How is the get () method different from the post() method?

531


What are the phases of the servlet life cycle?

595


Why the container loads server at the application startup and how?

571


Tell the new features added in servletrequest interface i.e. Servlet 2.4

565


What is servlet and its advantages?

517


What are the functions of an intercepting filter?

482


How to find whether a parameter exists in the request object?

655