-
Aug 31st, 2008, 08:15 PM
#1
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..
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules