多选题For which three events can web application event listeners be registered? ()Awhen a session is createdBafter a servlet is destroyedCwhen a session has timed outDwhen a cookie has been createdEwhen a servlet has forwarded a requestFwhen a session attrib

题目

多选题For which three events can web application event listeners be registered? ()Awhen a session is createdBafter a servlet is destroyedCwhen a session has timed outDwhen a cookie has been createdEwhen a servlet has forwarded a requestFwhen a session attribute value is changed

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Given an Http Session session. A Servlet Request request. And a Servlet Context context. Which retrieves a URL to /WEB INF/ my config.xml within a web application?()

  • A、 session.get Resource (“/WEB-INF/myconfig.xml”)
  • B、 request.get Resource (“/WEB-INF/myconfig.xml”)
  • C、 context.get Resource (“/WEB-INF/myconfig.xml”)
  • D、 get Class ().get Resource (“/WEB-INF/myconfig.xml”)

正确答案:C

第2题:

A developer is designing a web application that must verify for each request: The originating request is froma trusted network. The client has a valid session.The client has been authenticated. Which design pattern provides a solution in this situation?()

  • A、Transfer Object
  • B、Session Facade
  • C、Intercepting Filter
  • D、Template Method
  • E、Model-View-Controller

正确答案:C

第3题:

Which two options best describe the purpose of session ID and cookie field in a L2TPv3 packet?()

  • A、The session ID is a 32-bit locally significant field used to identify the call on the destination or egresstunnel endport. The session ID will be negotiated by the control connection or statically defined if usingthe L2TP v3 data plane only
  • B、The cookie is a variable length(with a maximum of eight bytes),word-aligned optional field. The controlconnection can negotiate this as an additional level of guarantee beyond the regular session ID lookupto make sure that a data message has been directed to the correct session or that any recently reusedsession ID will not be misdirected
  • C、The cookie is a 32-bit locally significant field used to identify the call on the destination or egress tunnelendpoint. The cookie will be negotiated by the control connection or statically defined if using theL2TPv3 data plane only
  • D、The session ID is a variable length(with a maximum of eight bytes),word-aligned optional field the control connection can negotiate this as an additional level of guarantee beyond the regular cookielookup to make sure that a data message has been directed to the correct session or that any recentlyreused cookie will not be misdirected.

正确答案:A,B

第4题:

Which three are described in the standard web application deployment descriptor?()

  • A、session configuration
  • B、MIME type mappings
  • C、context root for the application
  • D、servlet instance pool configuration
  • E、web container default port bindings
  • F、Servlet Context initialization parameters

正确答案:A,B,F

第5题:

Which three are described in the standard web application deployment descriptor?()  

  • A、 session configuration
  • B、 MIME type mappings
  • C、 context root for the application
  • D、 servlet instance pool configuration
  • E、 web container default port bindings
  • F、 ServletContext initialization parameters

正确答案:A,B,F

第6题:

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

第7题:

Which interface must a class implement to be informed of a session creation event?()

  • A、 javax.servlet.http.HttpSessionListener
  • B、 javax.servlet.http.HttpSessionBindingListener
  • C、 javax.servlet.http.HttpSessionCreationListener
  • D、 javax.servlet.http.HttpSessionActivationListener

正确答案:A

第8题:

A developer has created a web application that includes a servlet for each use case in the application.These servlets have become rather difficult to maintain because the request processing methods havebecome very large. There is also common processing code in many servlets because these use cases arevery similar. Which two design patterns can be used together to refactor and simplify this web application?()

  • A、Proxy
  • B、View Helper
  • C、Front Controller
  • D、Session Facade
  • E、Business Delegate
  • F、Model-View-Controller

正确答案:C,F

第9题:

能够实现Session功能的方法有()

  • A、Cookies
  • B、隐藏的表单域
  • C、Servlet提供的session类
  • D、使用Web-Server的application对象

正确答案:A,B,C

第10题:

关于Servlet/JSP的Session ID,()是正确。

  • A、预设使用Cookie来储存Session ID
  • B、Cookie的名称是JSESSION ID
  • C、在禁用Cookie时,可以使用URL重写来发送Session ID
  • D、必须自行呼叫HttpSession的getId()方可产生

正确答案:A,C

更多相关问题