Announcement Announcement Module
No announcement yet.
spring mvc viewresolver redirect to servlet problem Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

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