servlet开发系列之二:接口和类详解
实现servlet的方式:
?1、实现Servlet接口
■Servlet类(重写service方法)+web.xml配置
?2、继承GenericServlet
■Servlet类(重写service方法)+web.xml配置
?3、继承HttpServlet
■Servlet类(重写doGet、doPost方法)+web.xml配置
?
?
发布时间: 2012-11-17 11:14:15 作者: rapoo
servlet开发系列之二:接口和类详解
实现servlet的方式:
?1、实现Servlet接口
■Servlet类(重写service方法)+web.xml配置
?2、继承GenericServlet
■Servlet类(重写service方法)+web.xml配置
?3、继承HttpServlet
■Servlet类(重写doGet、doPost方法)+web.xml配置
?
?