更多“Servlet的事件驱动由()实现。A、FilterB、ListenerC、ResponseD、Request”相关问题
  • 第1题:

    在servlet中实现转发功能是通过()方法实现的。

    A.response.getRequestDispatcher()

    B.response.sendRedirect()

    C.request..getRequestDispatcher()

    D.request.sendRedirect()


    参考答案:C

  • 第2题:

    定位网管无法接收设备上报告警的问题时,我们通常需要捕获SNMP()。

    A.TRAP

    B.SET-REQUEST

    C.GET-RESPONSE

    D.GET-REQUEST


    参考答案:A

  • 第3题:

    当属性scope的值为application时,JSP动作定义的JavaBean实例就会被存储到()对象中。

    • A、Servlet Context
    • B、Http Session
    • C、Servlet Application
    • D、Http Servlet Request

    正确答案:A

  • 第4题:

    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

  • 第5题:

    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

  • 第6题:

    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

  • 第7题:

    下列函数或对象能够实现ASP程序输出操作的有()。

    • A、MsgBox
    • B、InputBox
    • C、Response
    • D、Request

    正确答案:C

  • 第8题:

    在JSP中,使用动作可以将javaBean嵌入JSP页面,对JavaBean的访问范围不能是()。

    • A、application
    • B、page
    • C、response
    • D、request

    正确答案:C

  • 第9题:

    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

  • 第10题:

    单选题
    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
    解析: 暂无解析

  • 第11题:

    单选题
    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
    解析: 暂无解析

  • 第12题:

    单选题
    Which retrieves the binary input stream on line 13?()
    A

     request.get Writer ():

    B

     request.get Reader ():

    C

     request.get Input Stream():

    D

     request.get Resource As Stream():

    E

     request.get Resource As Stream (Servlet Request. REQUEST):


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

  • 第13题:

    在servlet中实现重定向功能是通过()方法实现的。

    A.response.getRequestDispatcher()

    B.response.sendRedirect()

    C.request..getRequestDispatcher()

    D.request.sendRedirect()


    参考答案:B

  • 第14题:

    以下有关自定义servlet、filter错误的是()

    • A、是在uap项目的weB.xml中定义servlet、filter
    • B、在模块中定义servlet、filter时,首先是模块的启动顺序决定了模块中所有servlet、filter的顺序
    • C、如果同一个模块中servlet、filter定义在不同的文件中,文件被加载解析的顺序也会影响模块servlet、filter的顺序
    • D、模块中同一个配置文件中定义的servlet、filter按被定义的前后顺序处理

    正确答案:A

  • 第15题:

    能为特定用户在Web页面间实现跨页传值的对象是()。

    • A、Session
    • B、Application
    • C、Response
    • D、Request

    正确答案:A

  • 第16题:

    Given an HttpServlet Request request and Http Servlet Response response, which sets a cookie “username” with the value “joe” in a servlet.?()

    • A、 request.add Cookie (“username”. “joe”)
    • B、 request.set Cookie (“username, “joe”)
    • C、 response.add Cookie (username”, “joe”))
    • D、 request.add Header (new Cookie (“username”, “joe”))
    • E、 request.add Cookie (new Cookie (“username”, “joe”))
    • F、 response.add Cookie (new Cookie (“username”, “joe”))
    • G、 response.add Header (new Cookie (“username”, “joe”))

    正确答案:F

  • 第17题:

    Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated by the servlet to the JSP;furthermore, that JSP uses a custom tag and must also process this information. This information mustNOT be accessible to any other servlet, JSP or session in the webapp. How can you accomplish this goal?()

    • A、Store the data in a public instance variable in the servlet.
    • B、Add an attribute to the request object before using the request dispatcher.
    • C、Add an attribute to the context object before using the request dispatcher.
    • D、This CANNOT be done as the tag handler has no means to extract this data.

    正确答案:B

  • 第18题:

    Servlet可通过由容器传递来的Http Servlet Request对象的()方法来获取客户请求的输入参数。

    • A、getParameter
    • B、getProtocol
    • C、getContentType
    • D、getAttribute

    正确答案:A

  • 第19题:

    在J2EE中,使用Servlet过滤器时,可以在web.xml文件的()元素中包括元素。

    • A、<filter>
    • B、<filter-class>
    • C、<filter-name>
    • D、<filter-mapping>

    正确答案:A

  • 第20题:

    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

  • 第21题:

    Servlet A receives a request that it forwards to servlet B within another web application in the same web container. Servlet A needs to share data with servlet B and that data must not be visible to other servlets in A’s web application.  In which object can the data that A shares with B be stored?()

    • A、 HttpSession
    • B、 ServletConfig
    • C、 ServletContext
    • D、 HttpServletRequest
    • E、 HttpServletResponse

    正确答案:D

  • 第22题:

    单选题
    Servlet的事件驱动由()实现。
    A

    Filter

    B

    Listener

    C

    Response

    D

    Request


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

  • 第23题:

    单选题
    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
    解析: 暂无解析