一:分類
1、普通servlet
來自于tomcat-servlet-api.jar
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>