servlet开发系列之二:接口和类详解
实现servlet的方式:
₪1、实现Servlet接口
■Servlet类(重写service方法)+web.xml配置
₪2、继承GenericServlet
■Servlet类(重写service方法)+web.xml配置
₪3、继承HttpServlet
■Servlet类(重写doGet、doPost方法)+web.xml配置
下一篇: 总结 JSP与 servlet之间的传值