# Which of these is true about deployment descriptors. Select the one correct answer.
1. The order of elements in deployment descriptor is not important. The elements can follow any order.
2. The elements of deployment descriptor are case insensitive.
3. The servlet-mapping element, if defined, must be included within the servlet element.
4. The web-app element must include the servlet element.
the correct answer is a.
I agree answer A is write according to what was mentioned in the SCWCD hints link,it says
Top level web.xml elements can appear in any order as compared to the servlet 2.3 specification. However, the order still matters within the elements inside the top-level elements - <servlet>, for example.
Now i just tested on tomcat 6 and it worked fine even if i put servlet-name element after servlet-class.Is this container specific ??
But i am giving SCWCD5 so in that i guess it is mandatory !??? Also can someone Please let me know about this statement the oder of listeners is defined in DD ? i am not able to get this statement .
How ? i mean if there is session listener and context listeners they are always gonna be executed when the EVENT occurs.Tomorrow is my exam please let me know if possible