HFSJ 2nd edition question 6. 6) When creating session listeners which are true? I thought option C - The DD tag used to declare them is <listener>. is correct. But the book says its incorrect. Why is that?
Originally posted by Deepak Jain: HFSJ 2nd edition question 6.
Hi, you can ask full question here.. that makes sense
Joined: Aug 05, 2006
When creating session listeners which are true? a) They are all declared in DD b) Not all of them are declared in DD c) The dd tag used is <listener> d) The dd tag used is <session-listener> e)The dd tag used to declared them must be placed within <web-app> f)The dd tag used to declared them must be placed within <servlet>
Answer As per book: B E According to me C is also correct. Because HttpSessionListner, HttpSessionAttributeListener & HttpSessionActivationListner must be declared in <listener/> tag and placed within <web-app> Is this correct? If yes is the book wrong?