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 use of servletconfig interface?
What is the use of servlet wrapper classes?
Why is servlet used?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
Difference between httpservlet and generic servlets?
Explain the methods of request dispatcher in servlet?
Why session tracking is needed?
What are some advantages of storing session state in cookies?
What are the difference between RMI and Servlets?
What do you mean by request dispatcher in servlet? Also explain its methods.
What are the type of protocols used in httpservlet?
What is dispatcher servlet?
Why do we have servlet filters?
What are the exceptions thrown by servlets? Why?
Explain their methods? Tell me their parameter names also have you used threads in servlet?