dispatcher 标签 :设置过滤请求的类型
有4中常用的类型:REQUEST FORWARD
INCLUDE ERROR
REQUEST:默认的 常用的请求
forward:请求的转发 request.getRequestDispatcher("index.jsp").forward(request,response);
INCLUDE:页面的包含 JSP代码:<jsp:include page="index.jsp"></jsp:include>
ERROR:页面出错 可以指定 跳转到某个页面
<error-page>
<error-code>出错误的类型(404)</error-code>
<location>/index.jsp(指定出错误跳转到的页面)</location>
</error-page>