题目内容

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.
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.

查看答案
更多问题

一个域中可以包含另一个域

A. 正确
B. 错误

()应当取得基金销售业务资格。

A. 宣传推介基金的人员
B. 基金销售信息管理平台系统运营维护人员
C. 为投资者基金交易操作的柜员
D. 一级分行基金业务管理人员

简述农业标准化与农业质量管理的关系。

压力容器进行气密性试验,不需要装配安全附件。()

A. 正确
B. 错误

答案查题题库