Announcement Announcement Module
No announcement yet.
Common Preprocessing code with Annotation Controllers Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Common Preprocessing code with Annotation Controllers

    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..