public abstract class HttpServlet
extends GenericServlet implements Serializable {
……
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException { }
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException { }