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

Answer Posted / annamalai

Hai doGet() method is the default HTTPServletRequest method.
In this user entered data is appended to the URL as query
String. It can send only limited amount of data. In doPost()
method the user entered information as data and not appended
to the URL.It can send any amount of data.

Is This Answer Correct ?    29 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to rectify errors in java servlet while compilation?

517


What is servlet and its advantages?

519


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

617


How a servlet is unloaded?

589


How to get the actual path of servlet in server?

734






How do you run a servlet?

537


Can a jsp be called using a servlet?

580


What is difference between PrintWriter and ServletOutputStream?

768


How we can call a jsp from the servlet?

529


What are the kinds of http requests?

605


How do you communicate in between Applets and Servlets?

591


What is servlet and how it works?

504


What are Servlets?

596


What is generic servlet class?

596


How do you configure a centralized error handler in servlets?

531