@JFinal,你好
下边是我现在的代码,我的路由“/”是 直接render一个login的JSP,然而那个JSP里的JS跟CSS每次都会在这里被拦截,导致页面异常,请问该怎么处理
handle(String s, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, [] booleans) { HttpSession session = httpServletRequest.getSession(); Object user = session.getAttribute(); ((s.endsWith() || s.endsWith() || s.endsWith() || s.endsWith()) && user == ) { .info(s + ); HandlerKit.(, httpServletRequest, httpServletResponse, booleans); } { .info(s + ); .handle(s, httpServletRequest, httpServletResponse, booleans); } }
项目:JFinal
if (target 需要被过滤) {
HandlerKit.renderError(404);
} else {
next.handle(target, request response, isHandled);
}