About Question enthuware.jwpv6.2.770 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
gurpreet_asrgndu
Posts: 55
Joined: Thu Jan 03, 2013 7:51 am
Contact:

Re: About Question enthuware.jwpv6.2.770 :

Post by gurpreet_asrgndu »

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

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

Re: About Question enthuware.jwpv6.2.770 :

Post by admin »

You are right. This has now been fixed.

thank you for your feedback!

Jkike79
Posts: 11
Joined: Tue Sep 10, 2013 3:20 pm
Contact:

Re: About Question enthuware.jwpv6.2.770 :

Post by Jkike79 »

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 :D

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

Re: About Question enthuware.jwpv6.2.770 :

Post by admin »

No, an overriding method may choose not to throw any exception at all.

HTH,
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests