Like their is request filters which are invoked before the request goes to servlet.
Is the response filter are invoked after the servlet completes?
Can anyone elaborately explain the difference between these two?
posted 6 years ago
They're actually the same thing. If you look at the documentation, you'll see that the doFilter method takes a ServletRequest and a ServletResponse as an argument. The filters will be called twice, once on the way in and once on the way out again (in reverse order).