the explanation says that the sessionDestroyed is called for all the listeners in the order they are declared in web.xml. but the specs says following:
servlet 3.0 spec:
8.2.3 Implementations of javax.servlet.http.HttpSessionListener are
invoked at their sessionCreated method in the order in which they have
been declared, and at their sessionDestroyed method in reverse order.
so explanation should be modified
About Question enthuware.jwpv6.2.770 :
Moderators: Site Manager, fjwalraven
-
- Posts: 55
- Joined: Thu Jan 03, 2013 7:51 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.770 :
You are right. This has now been fixed.
thank you for your feedback!
thank you for your feedback!
-
- Posts: 11
- Joined: Tue Sep 10, 2013 3:20 pm
- Contact:
Re: About Question enthuware.jwpv6.2.770 :
Hi,
Shouldn't the doGet method throw ServletExceptio and java.io.IOException?
I understand the question is not about the Servlet API but I though it was a tricky question
Shouldn't the doGet method throw ServletExceptio and java.io.IOException?
I understand the question is not about the Servlet API but I though it was a tricky question

-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.jwpv6.2.770 :
No, an overriding method may choose not to throw any exception at all.
HTH,
Paul.
HTH,
Paul.
Who is online
Users browsing this forum: No registered users and 2 guests