I would like to create filter that must run before Spring front controller (MVC). In my filter, if some condition is true , i need to skip the front controller and run my own operation and return a page to viewer.
Asked
Active
Viewed 45 times
0
-
Filter is executed first and after that request goes to controller. – Rahul Mar 03 '16 at 10:57
-
How to skip the controller? – Abdul Razak Mar 03 '16 at 11:04
-
Just don't call chain.doFilter(), but forward to a different servlet. – BalusC Mar 03 '16 at 11:08