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
How to get the actual path of servlet in server?
Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!
Tell us something about servletcontext interface.
Which is better jsp or servlet?
What do you mean by httpservlet and how it is different from the genericservlet?
How will two or three servlets interact or communicate with each other?
How do you invoke a servelt?
What is the servletconfig object?
What is the difference between the servlets and cgi programs?
Which event is fired at the time of session creation and destroy?
What are the uses of servlets?
What is ServletConfig object?
What is a servlet engine?
Is servlet thread safe?
What are sessions in servlets?