| Author |
Request Filter vs Response Filters
|
Gautam Verma
Greenhorn
Joined: Dec 15, 2010
Posts: 4
|
|
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?
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3786
|
|
|
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).
|
 |
 |
|
|
subject: Request Filter vs Response Filters
|
|
|