Aug 7th, 2012, 03:17 PM
spring mvc viewresolver redirect to servlet problem
I am working with apache shiro and got their spring-hibernate sample working. Now after authenticating the user, where it redirects to /home I would like to redirect to my application servlet. I would like to know how to redirect the user to a servlet after authentication.
The UrlBasedViewResolver works well with jsps. But how do I point to a servlet.
I have tried marking my servlet as a controller via @Controller and using the ControllerClassNameHandlerMapping.
I even tried a jsp that did an automic redirect via a form post but that jsp itself is not recognised.
Rest assured that I had all the Component scan and other bean definitions in place.
I need authenticated users to be redirected to my application servlet. How do I achieve this.
Any ideas would be greatly appreciated.
Tags for this Thread