网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
GivenaFilterclassdefinitionwiththismethod:21.publicvoiddoFilter(ServletRequestrequest,22.ServletResponseresponse,23.FilterChainchain)24.throwsServletException,IOException{25.//insertcodehere26.}Whichshouldyouinsertatline25toproperlyinvokethenextfilterinthechain,orthetargetservletiftherearenomorefilters?()
A.chain.forward(request,response);
B.chain.doFilter(request,response);
C.request.forward(request,response);
D.request.doFilter(request,response);
参考答案
更多 “ GivenaFilterclassdefinitionwiththismethod:21.publicvoiddoFilter(ServletRequestrequest,22.ServletResponseresponse,23.FilterChainchain)24.throwsServletException,IOException{25.//insertcodehere26.}Whichshouldyouinsertatline25toproperlyinvokethenextfilterinthechain,orthetargetservletiftherearenomorefilters?()A.chain.forward(request,response);B.chain.doFilter(request,response);C.request.forward(request,response);D.request.doFilter(request,response); ” 相关考题
考题
Given:10.publicvoidservice(ServletRequestrequest,11.ServletResponseresponse){12.ServletInputStreamsis=13.//insertcodehere14.}Whichretrievesthebinaryinputstreamonline13?()
A.request.getWriter();B.request.getReader();C.request.getInputStream();D.request.getResourceAsStream();
考题
在一个Filter中,处理filter业务的是()方法。A.dealFilter (ServletRequest request,ServletResponse response,FilterChain chain)B.dealFilter (ServletRequest request,ServletResponse response)C.doFilter (ServletRequest request,ServletResponse response, FilterChain chain)D.doFilter (ServletRequest request,ServletResponse response)
考题
【单选题】在一个Filter中,处理filter业务的是()方法A.dealFilter (ServletRequestrequest,ServletResponse response,FilterChain chain)B.dealFilter (ServletRequestrequest,ServletResponse response)C.doFilter (ServletRequestrequest,ServletResponse response, FilterChain chain)D.doFilter (ServletRequestrequest,ServletResponse response)
热门标签
最新试卷