yang哥

博客园 首页 新随笔 联系 订阅 管理

2015年4月30日 #

摘要: 在编写servlet过程中,需要用到 ServletConfig、ServletContext对象,对这两种对象的介绍如下:ServletContext对象:servlet容器在启动时会加载web应用,并为每个web应用创建唯一的servletcontext对象,可以把ServletContext看... 阅读全文
posted @ 2015-04-30 21:55 woniuyang 阅读(144) 评论(0) 推荐(0)

摘要: ServletConfig与ServletContext对象详解一、ServletConfig对象在Servlet的配置文件中,可以使用一个或多个标签为servlet配置一些初始化参数。(配置在某个servlet标签或者整个web-app下)当servlet配置了初始化参数后,web容器在创建ser... 阅读全文
posted @ 2015-04-30 21:10 woniuyang 阅读(219) 评论(0) 推荐(0)