This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Listeners Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Listeners " Watch "Listeners " New topic
Author

Listeners

Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
In HFSJ 1st edition 206 page it has been give .

Lifecycle events related to sessions(excluding attributes related events) ->sessionCreated()m sessionDestroyed()

Lifecycle events related to requests (excluding attributes related events)->requestInitialized(),requestDestroyed().

Lifecycle events related to contexts(excluding attributes related events)-> contextInitialized(),contextDestroyed().

But as per my understanding -> the bolded events should be methods

please share your views...
[ July 28, 2008: Message edited by: Chintu sirivennela ]

SCJP 5 |SCWCD 5| Started thinking about Web Services ?
Anand Bhatt
Ranch Hand

Joined: May 30, 2007
Posts: 189
In book these are specified as "Lifecycle events" as these are methods that are called when some events generate.So its up to you either you call it lifecycle events or methods.I do not think there is any difference in what you named them.
Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
Thanks for the response.

But we already have events rite, but how can we call methods as Lifecycle events . I have shown some other way is it correct or not

Lifecycle events related to sessions(excluding attributes related events) ->HttpSessionEvent

Lifecycle events related to requests (excluding attributes related events)->ServletRequestEvent

Lifecycle events related to contexts(excluding attributes related events)-> ServletContextEvent
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Listeners
 
Similar Threads
Question on rendering
Which Listeners are mandatory in web.xml
which HFSJ chapters do i relate these topics ?
A little competition
Marty, what's the place of new listeners in life cycle?