1. When the
servlet container receives a request, it finds all the filter mappings with a <b> URL pattern </b> that matches the request URI. This becomes the first set of filters in the filter chain.
2. Next, it finds all the filter mappings with a <b> servlet name </b> that matches the request URI. This becomes the second set of filters in the filter chain.
3. In both sets, the order of the filters is <b> the order in which they appear in the deployment descriptor. </b>
Hope this helps.
Regards,
Viji.