What is the difference between doGet and doPost?
Answer Posted / janet
1. doGet() method is used to get information ,while
doPost() method is used for posting information.
2.doGet() requests can't send large amount of information
and is limited to 24-255 characters.How ever doPost()
requests passes all of it's data ,of unlimited length.
3. A doGet() request is appended to the request URL in a
query string and this allows the exchange is visible to the
client,where as a doPost() request passes directly over the
socket connection as part of its HTTP Request body and the
exchange are invisible to the client.
|Is This Answer Correct ?||99 Yes||22 No|
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
How to get the actual path of servlet in server?
How can the session in servlet can be destroyed?
What is the difference between a generic servlet and http servlet?
What is the type of method for sending request from http server?
What do you mean by a filter and how does it work?
What do you mean by request dispatcher in servlet? Also explain its methods.
What is a deployment descriptor?
What is servlet and its advantages?
What is httpservlet class?
What is getservletcontext?
What is a cookie What is the difference between session and cookie
How can we invoke another servlet in a different application?
What is the use of welcome-file-list?
What are the steps involved in placing a servlet within a package?