In servlets, Why do we need both GET and POST method
implementations?
Answer Posted / upender
I agree the above two answers. Here is my view.
HTTP Get method perform the following scenarios.
1) By default form submission without specifying method
name
2)if you click on hyperlinkS or images
3) or if you type url in address bar in brower
and Get there is no side effect. simple it get the resource
form serverside. Some time we require to deal with headers
Get can send only character data and limited data.and also
It can't support binary data.
POST method can support binary data and bulk data.
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is the need of servlet filters?
What is the use of httpservletresponsewrapper?
Explain the steps involved in placing a servlet within a package?
What is difference between server and servlet?
What is life cycle of Servlet?
How do you create a cookie using servlet?
Explain servlet.
What is servlet and its advantages?
What is meant by Servlet? What are the parameters of service method?
What is servlet in web technology?
How can you start a jta transaction from a servlet deployed on jboss?
Explain Action Servlet?
Does servlet have main method?
What is the life-cycle of servlets?
How do you communicate in between Applets and Servlets?