-
Aug 7th, 2012, 03:17 PM
#1
spring mvc viewresolver redirect to servlet problem
Hi,
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.
cheers,
V.Omprakash
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