Hi,
I wrote the mock exam in javaranch I found a question
<web-app>
<
servlet>
.....
</servlet>
<listener>
<listener-class>com.javaranch.LogListener</listener-class>
</listener>
</web-app>
The above entry in the Deployment Descriptor(DD) will result in which of the following?
I selected the answer that a new listener class will be registered, but they gave the answer like this DD is wrong and the reason is
"The ordering of the DD is listener then servlet." . Is it true? listeners should come first and then servlets? Please explain me.