doFilter must invoke chain.doFilter()?
posted 7 years ago
Usually it does call chain.doFilter, but it's not required to do so. If the filter (e.g. one that checks for user logins) determines that the regular filter flow should not be followed but the request should be redirected (e.g. to some login page) than it should skip the chain.doFilter call.