Forwarded servlet request won’t be intercepted by filters

The new request created by RequestDispatcher.forward(request, response) will not be intercepted by its matching filters defined in web.xml

To make a filter work for requests created by dispatcher, you have to add 2 dispatcher configurations to your filter mapping

	
		someFilter
		/*
                          
		REQUEST
		FORWARD
	

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.