关于网友提出的“ 过滤器使用forward重定向 报404错误,高手进来指点我一下吧”问题疑问,本网通过在网上对“ 过滤器使用forward重定向 报404错误,高手进来指点我一下吧”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题: 过滤器使用forward重定向 报404错误,高手进来指点我一下吧描述:
为什么在过滤器中使用forward重定向报404错误
public void doFilter(ServletRequest req, ServletResponse res,
FilterChain filterChain) throws IOException, ServletException {
}
FilterChain filterChain) throws IOException, ServletException {
((HttpServletResponse)res).sendRedirect("/newssi/error.jsp");
//filterChain.doFilter(req, res);
}