过滤器的dispatcher(配置到servletmapping里面) 只有被填入的请求才会经过指定的filter,比如填入FORWARD,就只有从别的页面或servlet转发过来的请求才会执行filter
ERROR是当某个页面被作为错误页(如404,403)时被返回时执行的filer,直接访问该页面不会触发filter
REQUEST INCLUDE FORWARD ERROR
定义错误页
<error-page>
<erroe-code>错误码</erroe-code>
<error-location>要返回的页面</error-location>
</error-page>