1. I know we can specify several filters in web.xml file. But how can I specify the order of filters ? in the chain.doFilter() method how does it know which filter it is going to invoke ?
2. Secondly, suppose I have only one filter and in its "doFilter()" method I put nothing but "chain.doFilter()", then does it mean this filter just does nothing because I don't have any other filter and this one isn't doing anything ?