In a servlet after extending the HttpServlet class,if I override the doGet or doPost Methods,what is difference in functioning?What happens if code meant to be written in doGet is written in doPost because I read that the service methods calls the doGet or doPost methods,after getting its reference.Please explain.I would like to understand this in depth.
In doGet method, the data sent are appended in the url. So that should not be used when you are working with data you need to secure, like username password in login page.
doGet has limited data, where in doPost you can have large amount of data.
subject: Overriding the doGet and doPost Methods in servlet