response.sendRedirect java.lang.IllegalStateException

错误记录:
java.lang.IllegalStateException
org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435)
com.shenghai.filters.LoginFilter.doFilter(LoginFilter.java:48)
org.operamasks.faces.webapp.filter.DefaultSuffixRedirector.doFilter(DefaultSuffixRedirector.java:73)


网上很多地方说在response.sendRedirect后面加一句result就行,就是操蛋,解决方法:改成response.setHeader("refresh","1;URL=login.jsp");

你可能感兴趣的:(jsp)