Hi,
Today I attended Javaranch's mock exam I scored 72%(I need to prepare more)
I had one doubt with the following question present over there
<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?
1 Create a listener as defined by the com.javaranch.LogListener class.
2 Provide a Log Servlet for the entire application.
3 Log all session information as they occur.
4 The webapp will not be loaded due to a parse exception of the DD.
what would be the answer?
As per
Java ranch review answer is 4
but Its working fine for me when I put listener element after servlet element...
any suggestions regarding this would be greatly appriciated..
Thanks