| Author |
methods in Listeners
|
Ganesh.P Ram
Ranch Hand
Joined: Dec 22, 2005
Posts: 41
|
|
Last night I was going through the listeners(ServletContextListener...) in HFSJ. Do we have to remember all the method names in all those 8 listener interfaces. What sort of questions are asked in the exam from the listener perspective. Any leads ?
|
Ganesh
|
 |
MInu
Ranch Hand
Joined: Oct 09, 2003
Posts: 517
|
|
You should have a fair understanding about the methods in each interface. The other things are, 1.Listener Events. 2.The listeners which need not register in the DD. 3.Its order of execution Thanks.. [ March 14, 2006: Message edited by: Vinod NS ]
|
God Gave Me Nothing I Wanted<br />He Gave Me Everything I Needed<br /> - Swami Vivekananda
|
 |
Vishnu Prakash
Ranch Hand
Joined: Nov 15, 2004
Posts: 1026
|
|
Do we have to remember all the method names in all those 8 listener interfaces.
Yes you have to remember the method names. For example For Request and Context listeners we got requestInitialized() and contextInitialized() methods whereas for session it is sessionCreated(). You also got to memorize their respective events.
|
Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
|
 |
Frederic Esnault
Ranch Hand
Joined: Feb 13, 2006
Posts: 284
|
|
Yes you have to know the listeners, the method names, the method parameters (the actual event classes), AND the method available from the event. For exemple, know that HttpSessionEvent has a getSession() method to access the session your listening to. Know also when listeners are loaded and in which order. Know in which order they are invoked (both during webapp life and at webapp shutdown time (reverse order for this one)). This is not a great amount of work, but definitely necessary.
|
SCJP 5 - SCWCD 1.4 - SCBCD 1.3 - Certification study documents/resources: http://esnault.frederic.free.fr/certification
|
 |
 |
|
|
subject: methods in Listeners
|
|
|