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
Write a program to show the functionality of servlets.
What is the use of servletconfig interface?
What is load-on-startup in servlet?
Can we override servlet service method?
Explain url encoding?
What is ServletContext object?
What are the new features added to servlet 2.5?
How can you push data from an Applet to a Servlet?
What are different Authentication options available in Servlets.
Why servlet is mostly used?
What’s the difference between genericservlet and httpservlet?
Which event is fired at the time of setting, getting or removing attribute from application scope?
Name the packages that work with servlet?
What are the difference between session and cookies in servlet? Explain
Explain request dispatcher and its methods.