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's the architecture of a servlet package?
What are the objects involved when a servlet receives a call from client?
What is lazy loading and what is Generic Servlet Class?
What is servlet attributes and their scope?
What is the directory structure of a war file?
Can you create a deadlock condition on a servlet?
Why do we have servlet listeners?
How can you start a jta transaction from a servlet deployed on jboss?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
Can you send an authentication error from a servlet?
What is http servlet?
Which java application server is the best?
Explain Action Servlet?
How forward () method is different from send redirect () method?
What are Servlets?