What is the difference between doGet and doPost?
Answer Posted / kalyan
1. In doGet() u submit the request by appending the URL
while in doPost() request is submitted via form.
2.Since doGet() appends the link it is not safe for request
containing passwords etc. while doPost() uses form hens it
is safe.
3.You can send only limited data in doGet() while unlimited
data in doPost() .
4.doGet() request could used like a bookmark as it uses URL
but doPost() can't be used as bookmark.
| Is This Answer Correct ? | 22 Yes | 3 No |
Post New Answer View All Answers
What is servlet container?
How can a servlet be used to generate plain text instead of html?
How we can create war file in servlet?
What are the uses of servlet and what is servlet chaining?
Write a simple servlet program to print the contents of html.
What is servlet in simple terms?
Explain the difference between servletconfig and servletcontext in servlet?
What is servlet and how it works?
What do you mean by session tracking and also explain its techniques?
What is the use of java servlet api?
Which method of the httpservletrequest object is used?
Which event is fired at the time of project deployment and undeployment?
What is the difference between Server and Container?
How the JSP file will be executed on the Server side?
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?