单选题Which interface must a session attribute implement if it needs to be notified when a web container persistsa session?()Ajavax.servlet.http.HttpSessionListenerBjavax.servlet.http.HttpSessionBindingListenerCjavax.servlet.http.HttpSessionAttributeListenerDjavax.servlet.http.HttpSessionActivationListener

单选题
Which interface must a session attribute implement if it needs to be notified when a web container persistsa session?()
A

javax.servlet.http.HttpSessionListener

B

javax.servlet.http.HttpSessionBindingListener

C

javax.servlet.http.HttpSessionAttributeListener

D

javax.servlet.http.HttpSessionActivationListener


参考解析

解析: 暂无解析

相关考题:

Select 3 AVPs (Attribute-Value Pair) which MUST be present in the ICRQ:()A、Message TypeB、Calling NumberC、Assigned Session IDD、Called NumberE、Call Serial Number

Given an HttpServletRequest request and an HttpServletResponse response: 41.HttpSession session = null; 42.// insert code here 43.if(session == null) { 44.// do something if session does not exist 45.} else { 46.// do something if session exists47. } To implement the design intent,which statement must be inserted at line 42?()A、session = response.getSession();B、session = request.getSession();C、session = request.getSession(true);D、session = request.getSession(false);E、session = request.getSession("jsessionid");

Your web application requires the adding and deleting of many session attributes during a complex usecase. A bug report has come in that indicates that an important session attribute is being deleted too soonand a NullPointerException is being thrown several interactions after the fact. You have decided to create asession event listener that will log when attributes are being deleted so you can track down when theattribute is erroneously being deleted. Which listener class will accomplish this debugging goal?()A、Create an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.B、Create an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.C、Create an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.D、Create an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.

Which interface must a class implement to be informed of a session creation event?()A、 javax.servlet.http.HttpSessionListenerB、 javax.servlet.http.HttpSessionBindingListenerC、 javax.servlet.http.HttpSessionCreationListenerD、 javax.servlet.http.HttpSessionActivationListener

Which three are described in the standard web application deployment descriptor?()  A、 session configurationB、 MIME type mappingsC、 context root for the applicationD、 servlet instance pool configurationE、 web container default port bindingsF、 ServletContext initialization parameters

Which three are described in the standard web application deployment descriptor?()A、session configurationB、MIME type mappingsC、context root for the applicationD、servlet instance pool configurationE、web container default port bindingsF、Servlet Context initialization parameters

Which interface must a session attribute implement if it needs to be notified when a web container persistsa session?()A、javax.servlet.http.HttpSessionListenerB、javax.servlet.http.HttpSessionBindingListenerC、javax.servlet.http.HttpSessionAttributeListenerD、javax.servlet.http.HttpSessionActivationListener

A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page. Which threejsp:useBean attributes must be used to access this attribute in the JSP page?()A、idB、nameC、beanD、typeE、scope

You have a use case in your web application that adds several session-scoped attributes. At the end of theuse case, one of these objects, the manager attribute, is removed and then it needs to decide which of theother session-scoped attributes to remove. How can this goal be accomplished?()A、The object of the manager attribute should implement the HttpSessionBindingListener and it should call the removeAttribute method on the appropriate session attributes.B、The object of the manager attribute should implement the HttpSessionListener and it should call the removeAttribute method on the appropriate session attributes.C、The object of the manager attribute should implement the HttpSessionBindingListener and it should call the deleteAttribute method on the appropriate session attributes.D、The object of the manager attribute should implement the HttpSessionListener and it should call the deleteAttribute method on the appropriate session attributes.

For which three events can web application event listeners be registered?()A、When a session is createdB、After a servlet is destroyedC、When a session has timed outD、When a cookie has been createdE、When a servlet has forwarded a requestF、When a session attribute value is changed

Given that session is a valid HttpSession object:   Int max = session.getAttribute(“MyReallyLongName”);   Which is true?()  A、 The value returned needs to be cast to an int.B、 The getAttribute methos takes two arguments.C、 Primitive CANNOT be stored in the HttpSession.D、 The HttpSession attribute name must NOT exceed eight characters.

Which the statement is true about web container session management()?A、 Access to session-scoped attributes is guaranteed to be thread-safe by the web container.B、 To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.C、 If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.D、 The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.

Which interface must a class implement so that instances of the class are notified after any object is added to a session? ()A、 javax.servlet.http.HttpSessionListenerB、 javax.servlet.http.HttpSessionValueListenerC、 javax.servlet.http.HttpSessionBindingListenerD、 javax.servlet.http.HttpSessionAttributeListener

You are customizing the user interface options for the finance department in your organization. Users in the department are able to see a session counter on the Web interface of the Junos Pulse Access Control Service. The CFO is unable to see the session counter.Which explanation would cause this behavior?()A、The CFO is mapped to the finance role, but the session counter was enabled prior to the role mapping.B、The CFO is mapped to the finance role, but the session counter was enabled after the role mapping.C、The CFO is mapped to the executive and finance roles, but the CFO was mapped to the executive role first, which does not have the session counter enabled.D、The CFO is mapped to the executive and finance roles, but the CFO was mapped to the executive role last, which does not have the session counter enabled.

End users want to map a network drive on their PCs when they are connected to the Junos Pulse Access Control Service. The mapped drive must be removed when users disconnect their session.Which feature addresses this requirement?()A、agent session scriptsB、preconfiguration installerC、Junos Pulse component setD、agent actions

单选题Given that session is a valid HttpSession object:   Int max = session.getAttribute(“MyReallyLongName”);   Which is true?()A The value returned needs to be cast to an int.B The getAttribute methos takes two arguments.C Primitive CANNOT be stored in the HttpSession.D The HttpSession attribute name must NOT exceed eight characters.

多选题A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page. Which threejsp:useBean attributes must be used to access this attribute in the JSP page?()AidBnameCbeanDtypeEscope

单选题Which interface must a class implement so that instances of the class are notified after any object is added to a session? ()A javax.servlet.http.HttpSessionListenerB javax.servlet.http.HttpSessionValueListenerC javax.servlet.http.HttpSessionBindingListenerD javax.servlet.http.HttpSessionAttributeListener

多选题Select 3 AVPs (Attribute-Value Pair) which MUST be present in the ICRQ:()AMessage TypeBCalling NumberCAssigned Session IDDCalled NumberECall Serial Number

单选题Which statement is true about web container session management?()AAccess to session-scoped attributes is guaranteed to be thread-safe by the web container.BTo activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.CIf the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.DThe JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.

单选题Which interface must a class implement to be informed of a session creation event?()A javax.servlet.http.HttpSessionListenerB javax.servlet.http.HttpSessionBindingListenerC javax.servlet.http.HttpSessionCreationListenerD javax.servlet.http.HttpSessionActivationListener

单选题You have a use case in your web application that adds several session-scoped attributes. At the end of theuse case, one of these objects, the manager attribute, is removed and then it needs to decide which of theother session-scoped attributes to remove. How can this goal be accomplished?()AThe object of the manager attribute should implement the HttpSessionBindingListener and it should call the removeAttribute method on the appropriate session attributes.BThe object of the manager attribute should implement the HttpSessionListener and it should call the removeAttribute method on the appropriate session attributes.CThe object of the manager attribute should implement the HttpSessionBindingListener and it should call the deleteAttribute method on the appropriate session attributes.DThe object of the manager attribute should implement the HttpSessionListener and it should call the deleteAttribute method on the appropriate session attributes.

多选题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

单选题You are customizing the user interface options for the finance department in your organization. Users in the department are able to see a session counter on the Web interface of the Junos Pulse Access Control Service. The CFO is unable to see the session counter.Which explanation would cause this behavior?()AThe CFO is mapped to the finance role, but the session counter was enabled prior to the role mapping.BThe CFO is mapped to the finance role, but the session counter was enabled after the role mapping.CThe CFO is mapped to the executive and finance roles, but the CFO was mapped to the executive role first, which does not have the session counter enabled.DThe CFO is mapped to the executive and finance roles, but the CFO was mapped to the executive role last, which does not have the session counter enabled.

单选题End users want to map a network drive on their PCs when they are connected to the Junos Pulse Access Control Service. The mapped drive must be removed when users disconnect their session.Which feature addresses this requirement?()Aagent session scriptsBpreconfiguration installerCJunos Pulse component setDagent actions

单选题Your web application requires the adding and deleting of many session attributes during a complex usecase. A bug report has come in that indicates that an important session attribute is being deleted too soonand a NullPointerException is being thrown several interactions after the fact. You have decided to create asession event listener that will log when attributes are being deleted so you can track down when theattribute is erroneously being deleted. Which listener class will accomplish this debugging goal?()ACreate an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.BCreate an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.CCreate an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.DCreate an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.

单选题Which interface must a class implement so that instances of the class are notified after any object is addedto a session?()Ajavax.servlet.http.HttpSessionListenerBjavax.servlet.http.HttpSessionValueListenerCjavax.servlet.http.HttpSessionBindingListenerDjavax.servlet.http.HttpSessionAttributeListener