When i forward the request from servlet to another, does filters described in web.xml get executed? In fact i am not sure whether web.xm comes in to picture or not in case of request forward? I know it happens in case of redirect as its fresh request from browser but not sure about forward?
By default - no.
You can enable execution of specific filter on forward by adding
<dispatcher>FORWARD</dispatcher>
to its <filter-mapping>.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With