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
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
How are filters?
What do you mean by deployment descriptor?
What are the mechanisms used by a servlet container for maintaining session information?
What is war file?
Why don't we write a constructor in a servlet?
What do you mean by web applications? Explain web application directory arrangement?
What are the types of servlets? Explain
How can an existing session be invalidated?
Why do we need servlet filter?
Describe servlet?
What is a servlet?
Write a hello world program using servlets.
How does tomcat servlet container work?
Explain Action Servlet?