在一个Filter中,处理Filter业务的是( )方法
A: doFilter (HttpServletRequest request,HttpServletResponse response,FilterChainchain)
B: doFilter (HttpServletRequest request,HttpServletResponse response)
C: doFilter (ServletRequest request,ServletResponse response ,FilterChain chain)
D: doFilter (ServletRequest request, ServletResponse response)
A: doFilter (HttpServletRequest request,HttpServletResponse response,FilterChainchain)
B: doFilter (HttpServletRequest request,HttpServletResponse response)
C: doFilter (ServletRequest request,ServletResponse response ,FilterChain chain)
D: doFilter (ServletRequest request, ServletResponse response)
举一反三
- 在一个Filter中,处理filter的业务的是()方法 A: dealFilter(ServletRequest reg,ServletResponse res,FilterChain chain) B: dealFilter(ServletRequest reg,ServletResponse res) C: doFilter(ServletRequest reg,ServletResponse res,FilterChain chain) D: doFilter(ServletRequest reg,ServletResponse res)
- 智慧职教: 在Servlet中有如下代码段: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { RequestDispatcher dis; _____________________________; dis.forward(request,response); }
- Filter过滤器中哪个方法在过滤器被销毁时被调用? A: init() B: doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) C: destory() D: init(FilterConfig config)
- 过滤器使用()才能继续传递到下一个过滤器。 A: request.getRequestDispatcher().forward(request,response) B: doFilter() C: doPut() D: doChain()
- 在一个Filter中,处理filter业务的是()方法。 A: dealFilter(ServletRequestrequest,ServletResponseresponse,FilterChainchain) B: dealFilter(ServletRequestrequest,ServletResponseresponse) C: doFilter(ServletRequestrequest,ServletResponseresponse,FilterChainchain) D: doFilter(ServletRequestrequest,ServletResponseresponse)