itgle.com

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

题目

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

  • A、response.forward()
  • B、response.sendRedirect()
  • C、session.getRequestDispatcher().forward(request,response)
  • D、request.getRequestDispatcher().forward(request,response)

相似考题
更多“能够保留请求作用域中数据的转向方式是()。A、response.forward()B、response.sendRedirect()C、session.getRequestDispatcher().forward(request,response)D、request.getRequestDispatcher().forward(request,response)”相关问题
  • 第1题:

    以太网中ARP报文分为ARP Request和ARP Response,ARP Request以()方式传送,ARP Response以()方式传送。


    正确答案:广播;单播

  • 第2题:

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

    • A、 Response.forward(“/index.jsp”)
    • B、 Response.sendRedirect(“/index.jsp”)
    • C、 request.forward(“/index.jsp”)
    • D、 request. sendRedirect (“/index.jsp”)

    正确答案:B

  • 第3题:

    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

  • 第4题:

    在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

  • 第5题:

    在J2EE中,重定向到另一个页面,以下()语句是正确的。

    • A、request.sendRedirect(
    • B、response.sendRedirect(
    • C、request.sendRedirect();
    • D、response.sendRedirect();

    正确答案:B

  • 第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题:

    单选题
    Servlet A forwarded a request to servlet B using the forward method of RequestDispatcher. What attributein B’s request object contains the URI of the original request received by servlet A?()
    A

    REQUEST_URI

    B

    javax.servlet.forward.request_uri

    C

    javax.servlet.forward.REQUEST_URI

    D

    javax.servlet.request_dispatcher.request_uri

    E

    javax.servlet.request_dispatcher.REQUEST_URI


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

  • 第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题:

    Servlet A forwarded a request to servlet B using the forward method of RequestDispatcher. What attributein B’s request object contains the URI of the original request received by servlet A?()

    • A、REQUEST_URI
    • B、javax.servlet.forward.request_uri
    • C、javax.servlet.forward.REQUEST_URI
    • D、javax.servlet.request_dispatcher.request_uri
    • E、javax.servlet.request_dispatcher.REQUEST_URI

    正确答案:B

  • 第15题:

    写入和读取cookie的方法是()

    • A、request.addCookies()和response.getCookies()
    • B、response.addcookie()和request.getCookies()
    • C、request.addCookies()和request.getCookies()
    • D、response.addcookie()和response.getCookies()

    正确答案:B

  • 第16题:

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

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

    正确答案:B

  • 第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题:

    Which four occur during the processing of a request using Oracle Shared Server?()

    • A、The dispatcher returns the response to the user.
    • B、The dispatcher places the request into the request queue.
    • C、The shared server places the response in the response queue.
    • D、The response is handed off to the next available dispatcher.
    • E、A shared server picks up the request from the request queue and processes the request.

    正确答案:A,B,C,E

  • 第20题:

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

     Response.forward(“/index.jsp”)

    B

     Response.sendRedirect(“/index.jsp”)

    C

     request.forward(“/index.jsp”)

    D

     request. sendRedirect (“/index.jsp”)


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

  • 第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
    解析: 暂无解析