e.g. security-role and security-constraint, i saw some web.xml in which security-role comes after security-constraint and some other web.xml in which the order is the other round.
posted 12 years ago
Ordering of elements in XML has to be preserved.According to the dtd published on the Sun site, it is always security-constraint followed by security-role. <!ELEMENT web-app (icon?, display-name?, description?, distributable?, 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*)> web-app_2_3.dtd can be downloaded from http://java.sun.com/dtd/