标签:servlet
一:分类
1、普通servlet
2、filter
3、listener
二:获取参数
1、application参数:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/xfire-servlet.xml,classpath:applicationContext.xml,
/WEB-INF/conf/beans/**/*.xml
</param-value>
</context-param>
servletContext.getInitParameter......
上下文参数:
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
普通servet:config.getInitParameter.......
fiter:filterConfig.getInitParameter
标签:servlet
原文地址:http://jun123.blog.51cto.com/9893428/1682774