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


Please Help Members By Posting Answers For Below Questions

Can we fetch the attributes related to a servlet on a different servlet?

616


How native code can be used in a servlet?

3510


When Servlet is unloaded?

617


What methodology can be followed to store more number of objects in a remote server?

1807


What is SingleThreadModel interface?

661






What exactly is a servlet?

533


How is a servlet implemented in code?

554


what is multiple server?

1749


Why are http servlets used in programming?

537


Explain the war file?

598


What are the phases of servlet life cycle?

597


What is a deployment descriptor?

586


What’s the use of the servlet wrapper classes??

625


How can I send user authentication information while making URL Connection?

527


what is servlet chaining?

615