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 |
Post New Answer View All Answers
Define the lifecycle for executing a jsp page.
What is the difference between jsp and servlet life cycle?
What is servlet in simple terms?
Explain request dispatcher and its methods.
What is pure servlet?
What are the phases of servlet life cycle?
Explain the war file?
Why do we need servlet filter?
List some life cycle methods of a servlet.
What is servlet initializer?
Explain the differences between jsp and servlet.
How can we perform any action at the time of deploying the project?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
What is difference between GenericServlet and HttpServlet?
How do you communicate in between Applets and Servlets?