网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

过滤器使用()才能继续传递到下一个过滤器。

  • A、request.getRequestDispatcher().forward(request,response)
  • B、doFilter()
  • C、doPut()
  • D、doChain()

参考答案

更多 “过滤器使用()才能继续传递到下一个过滤器。A、request.getRequestDispatcher().forward(request,response)B、doFilter()C、doPut()D、doChain()” 相关考题
考题 下列选项中能在JSP页面中实现转向的是() A.Response.forward(“/index.jsp”)B.Response.sendRedirect(“/index.jsp”)C.request.forward(“/index.jsp”)D.request.sendRedirect(“/index.jsp”)

考题 在Servlet过滤器的生命周期方法中,每当传递请求或响应时,web容器会调用doFilter方法。() 此题为判断题(对,错)。

考题 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);

考题 能够保留请求作用域中数据的转向方式是()。A、response.forward()B、response.sendRedirect()C、session.getRequestDispatcher().forward(request,response)D、request.getRequestDispatcher().forward(request,response)

考题 在编写过滤器时,需要完成的方法是()。A、doFilter()B、doChain()C、doPost()D、doDelete()

考题 On the wireless LAN, A client is searching for an access point (AP). What is the correct processorder that this client and access point goes through in order to create a connection?()A、association request/response, probe request/response, authentication request/responseB、association request/response, authentication request/response, probe request/responseC、probe request/response, authentication request/response, association request/responseD、probe request/response, association request/response, authentication request/responseE、None of the other alternatives apply

考题 在J2EE中,在aa.jsp中有行代码:  %%  request.setAttribute("Co.","jb-aptech");  %  在bb.jsp中有行代码: %  out.println((String)request.getAttribute("Co."));  %    %   为了使得在bb.jsp中的如上代码可以显示“jb-aptech”,可以使用()方法。A、在aa.jsp中使用form method=post action="bb.jsp"把请求提交到bb.jsp B、在aa.jsp中使用jsp:forward file="bb.jsp" /把页面重定向到bb.jsp  C、在aa.jsp中使用%  response.sendRedirect("bb.jsp");  %把页面重定向到bb.jsp D、在aa.jsp中使用%@ include file="bb.jsp" %包含页面bb.jsp  E、在aa.jsp中使用% config.getServletContext().getRequestDispatcher("/bb.jsp").forward(request,response); %把页面重定向到bb.jsp

考题 Your IT department is building a lightweight Front Controller servlet that invokes an application logic objectwith the interface: public interface ApplicationController {public String invoke(HttpServletRequest request)} The return value of this method indicates a symbolic name of the next view. From this name, the FrontController servlet looks up the JSP URL in a configuration table. This URL might be an absolute path or apath relative to the current request. Next, the Front Controller servlet must send the request to this JSP togenerate the view. Assume that the servlet variable request is assigned the current HttpServletRequestobject and the variable context is assigned the webapp’s ServletContext. Which code snippet of the FrontController servlet accomplishes this goal?()A、Dispatcher view=context.getDispatcher(viewURL);view.forward Request(request, response);B、Dispatcher view=request.getDispatcher(viewURL);view.forward Request(request, response);C、RequestDispatcher view. =context.getRequestDispatcher(viewURL);view.forward(request,response);D、RequestDispatcher view=request.getRequestDispatcher(viewURL);view.forward(request, response);

考题 当正在使用的过滤器需要反洗时,()A、需反洗的过滤器可直接反洗B、备用的过滤器投入使用,需反洗的过滤器退出使用去反洗C、需反洗的过滤器可边工作边反洗D、备用的过滤器投入使用,需反洗的过滤器则停机

考题 使用网页重定向的Response方法是:()。A、Response.charsetB、Request.redirectC、Response.writeD、Request.end

考题 关于FilterChain的描述,哪一个正确()。A、如果不呼叫FilterChain的doFilter()方法,则请求略过接下来的过滤器而直接交给ServletB、如果有下一个过滤器,呼叫FilterChain的doFilter()方法,会将请求交给下一个过滤器C、如果没有下一个过滤器,呼叫FilterChain的doFilter()方法,会将请求交给ServletD、如果没有下一个过滤器,呼叫FilterChain的doFilter()方法没有作用

考题 在JSP中需要将1.jsp的请求数据通过2.jsp转发给3.jsp,应该在2.jsp中采用()方式实现。A、〈%request.sendRedirect(“3.jsp”)%〉B、〈%response.sendRedirect(“3.jsp”)%〉C、〈%request.getRequestDispatcher(“3.jsp”).forward(request,response)%〉D、〈%response.sentRedirect(“32.jsp”).forward(request,response)%〉

考题 过滤器的生命周期可用它的三个方法表示,即()。A、init()B、doFilter()C、service()D、destroy()E、Filter()

考题 阅读下面代码片段: RequestDispatcher dispatcher=request.getRequestDispatcher("a.jsp"); dispatcher.forward(request,response); 关于该段代码的作用,下列叙述哪项是正确的?()A、页面重定向到a.jsp页面B、将请求转发到a.jsp页面C、从a.jsp定向到当前页面D、从a.jsp转发到当前页面

考题 On the Company wireless LAN, A client is searching for an access point (AP).  What is the correct  process order that this Company client and access point goes through in order to create a  connection?()A、 association request/response, probe request/response, authentication request/responseB、 association request/response, authentication request/response, probe request/responseC、 probe request/response, authentication request/response, association request/responseD、 probe request/response, association request/response, authentication request/responseE、 None of the other alternatives apply

考题 A client is searching for an access point (AP). What is the correct process order that the client and  access point go through to create a connection?()A、 probe request/response, authentication request/response, association request/responseB、 association request/response, authentication request/response, probe request/responseC、 probe request/response, association request/response, authentication request/responseD、 association request/response, probe request/response, authentication request/response

考题 Given a Filter class definition with this method: 21.public void doFilter(ServletRequest request, 22.ServletResponse response, 23.FilterChain chain) 24.throws ServletException, IOException { 25.// insert code here26. } Which should you insert at line 25 to properly invoke the next filter in the chain,or the target servlet if thereare no more filters?()A、chain.forward(request, response);B、chain.doFilter(request, response);C、request.forward(request, response);D、request.doFilter(request, response);

考题 检查发现油过滤器阻力为0.16MPa时,应()A、换油B、蒸汽吹扫C、清洗或更换过滤器滤芯D、继续使用

考题 单选题能够保留请求作用域中数据的转向方式是()。A response.forward()B response.sendRedirect()C session.getRequestDispatcher().forward(request,response)D request.getRequestDispatcher().forward(request,response)

考题 单选题检查发现油过滤器阻力为0.16MPa时,应()A 换油B 蒸汽吹扫C 清洗或更换过滤器滤芯D 继续使用

考题 单选题下列选项中能在JSP页面中实现转向的是()A  Response.forward(“/index.jsp”)B  Response.sendRedirect(“/index.jsp”)C  request.forward(“/index.jsp”)D  request. sendRedirect (“/index.jsp”)

考题 单选题On the Company wireless LAN, A client is searching for an access point (AP).  What is the correct  process order that this Company client and access point goes through in order to create a  connection?()A  association request/response, probe request/response, authentication request/responseB  association request/response, authentication request/response, probe request/responseC  probe request/response, authentication request/response, association request/responseD  probe request/response, association request/response, authentication request/responseE  None of the other alternatives apply

考题 单选题A client is searching for an access point (AP). What is the correct process order that the client and  access point go through to create a connection?()A  probe request/response, authentication request/response, association request/responseB  association request/response, authentication request/response, probe request/responseC  probe request/response, association request/response, authentication request/responseD  association request/response, probe request/response, authentication request/response

考题 单选题Your IT department is building a lightweight Front Controller servlet that invokes an application logic objectwith the interface: public interface ApplicationController {public String invoke(HttpServletRequest request)} The return value of this method indicates a symbolic name of the next view. From this name, the FrontController servlet looks up the JSP URL in a configuration table. This URL might be an absolute path or apath relative to the current request. Next, the Front Controller servlet must send the request to this JSP togenerate the view. Assume that the servlet variable request is assigned the current HttpServletRequestobject and the variable context is assigned the webapp’s ServletContext. Which code snippet of the FrontController servlet accomplishes this goal?()A Dispatcher view=context.getDispatcher(viewURL);view.forward Request(request, response);B Dispatcher view=request.getDispatcher(viewURL);view.forward Request(request, response);C RequestDispatcher view. =context.getRequestDispatcher(viewURL);view.forward(request,response);D RequestDispatcher view=request.getRequestDispatcher(viewURL);view.forward(request, response);

考题 单选题过滤器使用()才能继续传递到下一个过滤器。A request.getRequestDispatcher().forward(request,response)B doFilter()C doPut()D doChain()

考题 单选题Given a Filter class definition with this method: 21.public void doFilter(ServletRequest request, 22.ServletResponse response, 23.FilterChain chain) 24.throws ServletException, IOException { 25.// insert code here 26.} Which should you insert at line 25 to properly invoke the next filter in the chain, or the target servlet if thereare no more filters?()A chain.forward(request, response);B chain.doFilter(request, response);C request.forward(request, response);D request.doFilter(request, response);

考题 单选题在JSP中需要将1.jsp的请求数据通过2.jsp转发给3.jsp,应该在2.jsp中采用()方式实现。A 〈%request.sendRedirect(“3.jsp”)%〉B 〈%response.sendRedirect(“3.jsp”)%〉C 〈%request.getRequestDispatcher(“3.jsp”).forward(request,response)%〉D 〈%response.sentRedirect(“32.jsp”).forward(request,response)%〉