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
What are the features added in Servlet 2.5?
What do you mean by cgi?
Why do we need a constructor in a servlet if we use the init method?
What is ServletConfig object?
Why the container loads server at the application startup and how?
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>
What is meant by cookies?
What do you mean by deployment descriptor?
What is meant by servlet? What are the parameters of the service method?
Explain the difference between servletconfig and servletcontext in servlet?
Which protocol will be used by browser and servlet to communicate
What is the servlet?
How the servlet is loaded?
How can the session in servlet be destroyed?
Tell us something about servletcontext interface.