From the
servlet specification, i came to know that the order of top elements doesn't matter in web.xml i.e. we can have <servlet>,<servlet-mapping>,<security-constraint> in any order.
What about the inner tags of these elements ? does the sequence matters for inner tags?
Can we write like below:
<servlet>
<security-role-ref>
</role-name>
</role-link>
</security-role-ref>
<init-parm>
<parm-name>
<parm-value>
</init-parm>
<servlet-name>
<servlet-class>
</servlet>
Is this correct? If so,what is sequence rule for evaluataing web.xml.