Regarding the following question, I can not understand why the answer is C.
Please give a explaination about it.
Thank you in advance.
And Have a nice day!
Question Bank ID : 52 Choose the 1 correct answer <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?
a. Provide a Log Servlet for the entire application. b. Log all session information as they occur. c. The webapp will not be loaded due to a parse exception of the DD. d. Create a listener as defined by the com.javaranch.LogListener class
posted 10 years ago
The javaranch exam is for old version od SCWCD exam. As per old specification the order of components are importantant. In your case the <listener> enrty must be before <servlet> entry.
As per Servlet 2.4, there is no such restrictions.