what is the difference between doGet() and doPost()?

Answer Posted / venkat

whenever we use doGet() method query string will be appear
on the address bar.
but doPost() does't appear on the address bar.

doGet() method is send limited amount of data
doPost() method is send unlimited amount of data

using doGet() method we can't solve idem potent problem.
using doPost() method we can solve idem potent problem.

doGet() is faster
doPost() is slow.

doGet() method is get method based request
doPost() method is post method based request

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is servlet interface?

783


What is http servlet?

642


What do you mean by mime type?

614


What are the advantages of Servlet over CGI?

737


Why filter is used in servlet?

580






What are the jobs performed by servlets?

642


How the JSP file will be executed on the Server side?

702


What are the steps involved in placing a servlet within a package?

647


What is meant by Servlet? What are the parameters of service method?

655


How can we upload the file to the server using servlet?

602


How can we refresh automatically when new data has entered the database?

684


How to read request headers from servlets?

632


What are the different methods involved in generic servlet?

628


Write a command to get actual path of a servlet to the server?

603


What are the phases of servlet life cycle?

657