About Question enthuware.jwpv6.2.770 :

Moderator: admin

Post Reply
himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

About Question enthuware.jwpv6.2.770 :

Post by himaiMinh »

Hi,
Why value unbound cannot be printed first?
In DD, we don't need to include HttpSessionBindingListener, only HttpSessionListener is needed. So, the order of which listener should be implemented is not specified.

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.770 :

Post by admin »

As per the JavaDoc for invalidate method, "Invalidates this session then unbinds any objects bound to it." It is clear that the attributes are unbound after the session is invalidated. Therefore, "value unbound", which is being printed by HttpSessionBindingListener cannot be printed before "session destroyed".

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests