We are using Spring MVC 2.5.x annotation controllers. We love it. Almost all controllers performs certain common tasks such as Creating Logged User from the request, Checking for any "ErrorMsg" code in the request to add to the BindingResult (in case of redirect) etc. How do I have a common class to do this controller specific common tasks before processing a requested annotated controller? I looked into HandlerInterceptor, but there is no way to get the Model Attribute and BindingResult. Any suggestions, would be really appreciated..
Login or Sign Up
- Log in with