From
java docs:
protected void doGet(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
java.io.IOException
Part os the method description says:
The GET method should also be idempotent, meaning that it can be safely repeated. Sometimes making a method safe also makes it idempotent. For example, repeating queries is both safe and idempotent, but buying a product online or modifying data is neither safe nor idempotent.
What happens if you do have some code in the doGet(,) method that modifies data? Does the container consider the request as a "Bad request"?'
Thx,