HttpServletRequest request = (HttpServletRequest)arg0; HttpServletResponse Response = (HttpServletResponse)arg1; HttpSession session = request.getSession(); if(session.getAttribute("username")!=null) { arg2.doFilter(arg0, arg1); }else { Response.sendRedirect("login.jsp"); }为什么 if里面 是arg0 arg2 else 里面是Response 用arg2不行
添加回答
举报
0/150
提交
取消