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
How do cookies work in servlets?
What is a servlet context object?
What is the advantage of Servlets when compared with other server side technologies?
What are the functions of the servlet container?
How is an application exception handling is done using a servlet?
What is the difference between 2 types of servlets?
Can we get PrintWriter and ServletOutputStream both in a servlet?
How do we go with database connection and log4j integration in servlet?
Which is better jsp or servlet?
How does Cookies work in Servlets?
How is a servlet implemented in code?
What do you mean by web applications?
How do I know if java is running on linux?
What is the main purpose of java servlets?
What is servlet and its use?