Uniform support for GET and POST
The parameter-reading methods behave the same for GET and POST requests.
It is natural to support both kinds of request with the same code.
To do this, simply have doGet() dispatch to doPost(), or vice versa. For example:
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
doPost(request, response) ;
}