Hi,
I know that GET doGet() is Idempotent and POST doPost() is non Idempotent.
My understanding is like this a developer can still go ahead and write non idempotent GET doGet() and a Idempotent POST doPost(). But actual problem will come up when the code is being executed like given a scenario
where; Load on the Server is to high the browser will go ahead and submit multiple requests without even informing user until servers responds to it since in
Servlet Spec we have GET doGet() is Idempotent. in this case if the Developer has writen the code by making update or insert statements in GET rather than fetching or Querying the data it will create lot
of problems because we have implemented the methodes against the Servlet Spec.
Because of this reasons the developer should take care to put only the Querying logics in GET doGet()and Updating logics in the POST doPost() and thus following the Servlet Spec.
Is My understanding correct
Thanks