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
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|
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
What are the phases of a servlet life cycle?
What is the use of send redirect () method?
What does the term localization refer to?
What is the use of servlet wrapper classes?
Which exception is thrown if the servlet is not initialized properly?
What are the advantages of cookies?
How to generate the server side programming and the advantages of it over the other languages?
Why do we use sendredirect() method?
What are the different ways we can maintain state between requests?
What is Client-Server Computing?
How to get the current httpsession object?
What is the
Can we fetch the attributes related to a servlet on a different servlet?
Explain the differences between jsp and servlet.