Dear Allan,
Here is the DTD for <web-app> element:
<!ELEMENT web-app (icon?, display-name?, description?, distribut-able?,
context-param*, filter*, filter-mapping*, listener*, servlet*, servlet-mapping*,
session-config?, mime-mapping*, welcome-file-list?, error-page*,
taglib*, resource-env-ref*, resource-ref*, security-constraint*, login-config?,
security-role*, env-entry*, ejb-ref*, ejb-local-ref*)>
The order in which sub-elements are there in DTD should be followed while writing DD file.
Also note the meaning of following
* : 0 or more occurence
? : 0 or 1 occurence
+ : 1 or more occurence
| : means or
if no symbol than mandatory with exactly one occurence
I hope it helps.
Thanks and regards
Pradeep
Java Certification
Test Simulators � J@Whiz, SCWCD@Whiz
http://www.whizlabs.com/jwhiz