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 are the uses of servlet and what is servlet chaining?
What is the requirement of servlet config and servlet context implemented and how are they implemented?
Whether thread can be used in servlets?
What are the different session tracking techniques?
What is meant by session? Tell me something about httpsession class?
how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file
What is new in ServletRequest interface ? (Servlet 2.4)
What's the difference between servlets and applets?
What is lazy loading and what is Generic Servlet Class?
Explain the steps involved in placing a servlet within a package?
What is dispatcher servlet?
Is servlet a framework?
What is the servlet?
What is the difference between Difference between doGet() and doPost()?
Is servlet a controller?