=====web.xml=====
<<filter>> <<filter-name>>Section3_3_1Filter<</filter-name>> <<filter-class>>filter.Section3_3_1Filter<</filter-class>> <</filter>> <<filter-mapping>> <<filter-name>>Section3_3_1Filter<</filter-name>> <<url-pattern>>/wiki/*<</url-pattern>> <<dispatcher>REQUEST<>[[R]]EQUEST</dispatcher>> <<dispatcher>FORWARD<>FO[[R]]WA[[R]]D</dispatcher>> <<dispatcher>>INCLUDE<</dispatcher>> <<dispatcher>ERROR<>E[[R]][[R]]O[[R]]</dispatcher>> <</filter-mapping>>
'''dispatcher'''
何も指定しないと、REQUESTから呼ばれた場合にのみフィルターが適用される。何も指定しないと、[[R]]EQUESTから呼ばれた場合にのみフィルターが適用される。
指定することによって、呼び出し方法毎にフィルターを適用するか否かを設定できる。
[[File:0091_filter.jpg]]
*doFilter メソッドの引数は、HttpServletRequest、HttpServletResponse メソッドの引数は、HttpServlet[[R]]equest、HttpServlet[[R]]esponse '''ではない'''
----
{{amazon|1932394389}}
[http://www.amazon.co.jp/dp/1932394389?tag=typea09-22&link_code=as3&creativeASIN=1932394389&creative=3999&camp=767 SCWCD Exam Study Kit: Java Web Component Developer Certification (ペーパーバック)]