• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

spring-security - SwitchUserFilter: Unable to forward to switchUserUrl from controller  RSS feed

Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to build switch user functionality in our application using spring-security. The functionality works fine when I use the url in the browser:


But my use case requires me to forward to this url from a controller. I get mapping not found exception when I try to forward the request to this url from a controller method.

noHandlerFound No mapping found for HTTP request with URI [/testApp/j_spring_security_switch_user] in DispatcherServlet with name 'testApp'

I am not sure why spring dispatcherServlet cannot find the mapping when called from with in a controller. I would appreciate your response.

When all four tires fall off your canoe, how many tiny ads does it take to build a doghouse?
ScroogeXHTML - small and flexible RTF to HTML converter library
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!