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

题目

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

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

相似考题
更多“过滤器使用()才能继续传递到下一个过滤器。A、request.getRequestDispatcher().forward(request,response)B、doFilter()C、doPut()D、doChain()”相关问题
  • 第1题:

    在编写过滤器时,需要完成的方法是()。

    • A、doFilter()
    • B、doChain()
    • C、doPost()
    • D、doDelete()

    正确答案:A

  • 第2题:

    在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

    正确答案:D,E

  • 第3题:

    当正在使用的过滤器需要反洗时,()

    • A、需反洗的过滤器可直接反洗
    • B、备用的过滤器投入使用,需反洗的过滤器退出使用去反洗
    • C、需反洗的过滤器可边工作边反洗
    • D、备用的过滤器投入使用,需反洗的过滤器则停机

    正确答案:B

  • 第4题:

    关于FilterChain的描述,哪一个正确()。

    • A、如果不呼叫FilterChain的doFilter()方法,则请求略过接下来的过滤器而直接交给Servlet
    • B、如果有下一个过滤器,呼叫FilterChain的doFilter()方法,会将请求交给下一个过滤器
    • C、如果没有下一个过滤器,呼叫FilterChain的doFilter()方法,会将请求交给Servlet
    • D、如果没有下一个过滤器,呼叫FilterChain的doFilter()方法没有作用

    正确答案:B,C

  • 第5题:

    过滤器的生命周期可用它的三个方法表示,即()。

    • A、init()
    • B、doFilter()
    • C、service()
    • D、destroy()
    • E、Filter()

    正确答案:A,B,D

  • 第6题:

    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/response
    • B、 association request/response, authentication request/response, probe request/response
    • C、 probe request/response, authentication request/response, association request/response
    • D、 probe request/response, association request/response, authentication request/response
    • E、 None of the other alternatives apply

    正确答案:C

  • 第7题:

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

    正确答案:B

  • 第8题:

    单选题
    能够保留请求作用域中数据的转向方式是()。
    A

    response.forward()

    B

    response.sendRedirect()

    C

    session.getRequestDispatcher().forward(request,response)

    D

    request.getRequestDispatcher().forward(request,response)


    正确答案: D
    解析: 暂无解析

  • 第9题:

    单选题
    下列选项中能在JSP页面中实现转向的是()
    A

     Response.forward(“/index.jsp”)

    B

     Response.sendRedirect(“/index.jsp”)

    C

     request.forward(“/index.jsp”)

    D

     request. sendRedirect (“/index.jsp”)


    正确答案: A
    解析: 暂无解析

  • 第10题:

    单选题
    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/response

    B

     association request/response, authentication request/response, probe request/response

    C

     probe request/response, association request/response, authentication request/response

    D

     association request/response, probe request/response, authentication request/response


    正确答案: B
    解析: 暂无解析

  • 第11题:

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

    request.getRequestDispatcher().forward(request,response)

    B

    doFilter()

    C

    doPut()

    D

    doChain()


    正确答案: B
    解析: 暂无解析

  • 第12题:

    单选题
    在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)%〉


    正确答案: C
    解析: 暂无解析

  • 第13题:

    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/response
    • B、association request/response, authentication request/response, probe request/response
    • C、probe request/response, authentication request/response, association request/response
    • D、probe request/response, association request/response, authentication request/response
    • E、None of the other alternatives apply

    正确答案:C

  • 第14题:

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

    正确答案:D

  • 第15题:

    使用网页重定向的Response方法是:()。

    • A、Response.charset
    • B、Request.redirect
    • C、Response.write
    • D、Request.end

    正确答案:B

  • 第16题:

    在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)%〉

    正确答案:C

  • 第17题:

    阅读下面代码片段: RequestDispatcher dispatcher=request.getRequestDispatcher("a.jsp"); dispatcher.forward(request,response); 关于该段代码的作用,下列叙述哪项是正确的?()

    • A、页面重定向到a.jsp页面
    • B、将请求转发到a.jsp页面
    • C、从a.jsp定向到当前页面
    • D、从a.jsp转发到当前页面

    正确答案:B

  • 第18题:

    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/response
    • B、 association request/response, authentication request/response, probe request/response
    • C、 probe request/response, association request/response, authentication request/response
    • D、 association request/response, probe request/response, authentication request/response

    正确答案:A

  • 第19题:

    检查发现油过滤器阻力为0.16MPa时,应()

    • A、换油
    • B、蒸汽吹扫
    • C、清洗或更换过滤器滤芯
    • D、继续使用

    正确答案:C

  • 第20题:

    单选题
    检查发现油过滤器阻力为0.16MPa时,应()
    A

    换油

    B

    蒸汽吹扫

    C

    清洗或更换过滤器滤芯

    D

    继续使用


    正确答案: B
    解析: 暂无解析

  • 第21题:

    单选题
    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/response

    B

     association request/response, authentication request/response, probe request/response

    C

     probe request/response, authentication request/response, association request/response

    D

     probe request/response, association request/response, authentication request/response

    E

     None of the other alternatives apply


    正确答案: C
    解析: 暂无解析

  • 第22题:

    单选题
    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);


    正确答案: C
    解析: 暂无解析

  • 第23题:

    单选题
    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);


    正确答案: A
    解析: 暂无解析