問題詳情

122 In your web application, you need to execute a block of code whenever the session object isfirst created.Which design will accomplish this goal?
(A) Create an HttpSessionListener class and implement the sessionInitialized method with that blockof code.
(B) Create an HttpSessionActivationListener class and implement the sessionCreated method withthat block of code.
(C) Create a Filter class, call the getSession(false) method, and if the result was null, then execute thatblock of code.
(D) Create an HttpSessionListener class and implement the sessionCreated method with that block ofcode.
(E) Create a Filter class, call the getSession(true) method, and if the result was NOT null, then executethat block of code.

參考答案

無參考答案

內容推薦