在一个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)
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)
举一反三
- 在一个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)
- Filter过滤器中哪个方法在过滤器被销毁时被调用? A: init() B: doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) C: destory() D: init(FilterConfig config)
- 下面哪个方法不属于Servlet接口 A: init(ServletConfig config) B: destroy() C: getServletInfo() D: service(ServletRequest req, ServletResponse res) E: doGet(HttpServletRequest req, HttpServletResponse res)
- 在一个Filter中,处理filter业务的是()方法。 A: dealFilter(ServletRequestrequest,ServletResponseresponse,FilterChainchain) B: dealFilter(ServletRequestrequest,ServletResponseresponse) C: doFilter(ServletRequestrequest,ServletResponseresponse,FilterChainchain) D: doFilter(ServletRequestrequest,ServletResponseresponse)
- 下面选项中,属于Servlet事件监听器监听对象的是() A: ServletContext B: HttpSession C: ServletRequest D: ServletResponse