摘要: ServletContext概述ServletContext对象是Servlet三大域对象之一,每个Web应用程序都拥有一个ServletContext对象,该对象是Web应用程序的全局对象或者上下文。Tomcat服务器在启动时,会自动创建一个ServletContext对象,在关闭... 阅读全文
posted @ 2015-06-07 21:24 原来我就是麦兜 阅读(322) 评论(0) 推荐(0) 编辑
摘要: GenericServlet概述如果我们直接通过实现Servlet接口来编写一个Servlet类,就需要实现Servlet接口定义的5种方法,为了简化Servlet的编写,在javax.servlet包中提供了一个抽象类GenericServlet,该类提供了除service()方法... 阅读全文
posted @ 2015-06-07 20:48 原来我就是麦兜 阅读(711) 评论(0) 推荐(0) 编辑